Created
March 13, 2018 20:53
-
-
Save miticojo/7e35f93b6ee3a32d9f0c9ecb3dc00234 to your computer and use it in GitHub Desktop.
Ansible pass variable through playbooks running
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: localhost | |
| vars: | |
| colore: rosso | |
| tasks: | |
| - name: setto il colore rosso | |
| set_fact: colore_preferito="{{colore}}" | |
| - hosts: localhost | |
| tasks: | |
| - name: check if variable exist and print that out | |
| debug: msg="{{colore_preferito}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment