Hi Guys,
I’ve got 2 and more roles.
Role1:
`
- name: App is deployed msg
sudo: yes
debug: msg=“App is deployed to domain.tld”
register: slack
`
Role2:
`
- name: Send notification message via Slack
local_action:
module: slack
domain: domain.slack.com
channel: “#blaaaa”
token: supersecrettoken
msg: “{{slack.stdout}}”
`
How can i reference in Role2 the slack.stdout from the Role1 register? I don’t get it. Or is there another solution to handle this? Can i write the output from register in Role1 to a variable? So i could call this in Role2 ?
Cheers
Christian