Skip to content

Instantly share code, notes, and snippets.

@miticojo
Created March 13, 2018 20:53
Show Gist options
  • Save miticojo/7e35f93b6ee3a32d9f0c9ecb3dc00234 to your computer and use it in GitHub Desktop.
Save miticojo/7e35f93b6ee3a32d9f0c9ecb3dc00234 to your computer and use it in GitHub Desktop.
Ansible pass variable through playbooks running
- 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