I have been experimenting with using multiple instances of extra-vars at 
the command line and I have observed that last in from the command line is 
the value used at execution time.

ansible-playbook --extra-vars "foo='Yes'" --extra-vars "foo='No'" would 
pass foo='No' to your playbook. The name space is overwritten every time it 
is declared.


On Thursday, February 4, 2016 at 9:28:12 AM UTC-6, Brian Coca wrote:
>
> It is not really inheritance as the files are unrelated to each other, 
> but as the vars get created they can be overwritten or merged 
> (ansible.cfg setting should apply) by the 'next file', so the last 
> file listed should win and it is consistent (same order same results). 
>
>
>
> -- 
> Brian Coca 
>

-- 
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/007c3a17-725e-4dd0-b17f-12665acea901%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to