Ansible: Difference between revisions

m tag Python
Variables: improve clarity
Line 71: Line 71:
==Variables==
==Variables==


;You have 3 plays in one playbook.  Will play 3 be able to reference facts registered in play 1?:
;I have 3 plays in one playbook.  Will play 3 be able to reference facts registered in play 1?:
:facts, yes, play vars, no
: facts: yes  
:vars associated to the host, persist, vars defined in the play, do not, set_facts, registered vars and gathered facts associate to the host so those do persist for the run
: play vars: no
: vars associated to the host, persist.
: set_facts, registered vars and gathered facts associate to the host, so those do persist for the run
: vars defined in the play, do not.


==Playbooks==
==Playbooks==