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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7934ebdc-a811-4b65-ad8f-56032c1bd29c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to