Is the "all" group not at the same level as groups?

31 views
Skip to first unread message

David Reagan

unread,
Jun 25, 2015, 2:16:20 PM6/25/15
to ansible...@googlegroups.com
Ansible docs say:

* extra vars (-e in the command line) always win
* then comes connection variables defined in inventory (ansible_ssh_user, etc)
* then comes "most everything else" (command line switches, vars in play, included vars, role vars, etc)
* then comes the rest of the variables defined in inventory
* then comes facts discovered about a system
* then "role defaults", which are the most "defaulty" and lose in priority to everything.

The "all" group would fall into the "most everything else" line.

But after some testing with a simple debug play, shouldn't it actually look like this?


* extra vars (-e in the command line) always win
* then comes connection variables defined in inventory (ansible_ssh_user, etc)
* then comes "most everything else" (command line switches, vars in play, included vars, role vars, etc)
* then comes the all group
* then comes the rest of the variables defined in inventory * then comes facts discovered about a system * then "role defaults", which are the most "defaulty" and lose in priority to everything.


Brian Coca

unread,
Jun 26, 2015, 9:22:59 AM6/26/15
to ansible...@googlegroups.com
Within the groups there is also a order (which is not documented in
that paragraph above), 'all' is the least precedence, and then groups
in the order read/loaded, so child groups overwrite parent groups,
etc.




--
Brian Coca

David Reagan

unread,
Jun 26, 2015, 12:25:37 PM6/26/15
to ansible...@googlegroups.com
Can we get that order documented? 

--David Reagan


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/IkPb3wPJqxU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8mZbK4jjb-r%2BvRoCVU07-e8moRxLCFe9X1Jwyq_%2B%3DStXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages