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. -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/70161ba7-8c86-42ea-90c7-25e1805ba470%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.