You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/docs/docsite/rst
James Cammarata a2599cab79 Fix variable precedence of INI/script vars to be in-line with docs.
This commit also adds a new test script (ansible-var-precedence-check.py in code-smell/)
to provide us with another line of defense against precedence bugs going forward.

The precedence docs state that the INI vars have a lower precedence than group/host
vars files for inventory and playbooks, however that has not been the case since 2.0
was released. This change fixes that in one way, though not exactly as the docs say.
The rules are:

1) INI/script < inventory dir < playbook dir
2) "all" group vars < other group_vars < host_vars

So the new order will be (from the test script mentioned above):

8. pb_host_vars_file - var in playbook/host_vars/host
9. ini_host_vars_file - var in inventory/host_vars/host
10. ini_host - host var inside the ini
11. pb_group_vars_file_child - var in playbook/group_vars/child
12. ini_group_vars_file_child - var in inventory/group_vars/child
13. pb_group_vars_file_parent - var in playbook/group_vars/parent
14. ini_group_vars_file_parent - var in inventory/group_vars/parent
15. pb_group_vars_file_all - var in playbook/group_vars/all
16. ini_group_vars_file_all - var in inventory/group_vars/all
17. ini_child - child group var inside the ini
18. ini_parent - parent group var inside the ini
19. ini_all - all group var inside the ini

Fixes #21845
8 years ago
..
dev_guide Make the metadata docs agree with what's currently implemented 8 years ago
modules consolidated docs 8 years ago
roadmap initial commit of win_domain module (#22179) 8 years ago
YAMLSyntax.rst consolidated docs 8 years ago
become.rst become options dont qualify as new anymore 8 years ago
committer_guidelines.rst consolidated docs 8 years ago
common_return_values.rst Don't mix deprecations messages with warnings messages (#21337) 8 years ago
community.rst Make pull-request sentence less ambiguous (#21802) 8 years ago
conf.py PEP 8 indent cleanup. (#20800) 8 years ago
faq.rst Fix Passlib example in FAQ (#21997) 8 years ago
galaxy.rst Add role skeleton support (#17079) 8 years ago
glossary.rst consolidated docs 8 years ago
guide_aws.rst consolidated docs 8 years ago
guide_azure.rst consolidated docs 8 years ago
guide_cloudstack.rst Fix all RST errors for docs/docsite/rst (#20005) 8 years ago
guide_docker.rst consolidated docs 8 years ago
guide_gce.rst consolidated docs 8 years ago
guide_rax.rst consolidated docs 8 years ago
guide_rolling_upgrade.rst Use HTTPS instead of legacy HTTP for ansible.com (#16870) 8 years ago
guide_vagrant.rst consolidated docs 8 years ago
guides.rst consolidated docs 8 years ago
index.rst consolidated docs 8 years ago
intro.rst consolidated docs 8 years ago
intro_adhoc.rst consolidated docs 8 years ago
intro_bsd.rst Fix all RST errors for docs/docsite/rst (#20005) 8 years ago
intro_configuration.rst Fix docs re inventory_ignore_extensions config (#21132) 8 years ago
intro_dynamic_inventory.rst Fix docs re inventory_ignore_extensions config (#21132) 8 years ago
intro_getting_started.rst consolidated docs 8 years ago
intro_installation.rst Move to using a requirements.txt to install the python packages. (#21430) 8 years ago
intro_inventory.rst Update docker example on Inventory page (#20209) 8 years ago
intro_networking.rst Delete link to test-network-modules (#21347) 8 years ago
intro_patterns.rst Fix all RST errors for docs/docsite/rst (#20005) 8 years ago
intro_windows.rst Clarify what modules are available for Windows (#21888) 8 years ago
modules.rst Doc module meta (#20093) 8 years ago
modules_intro.rst Fix all RST errors for docs/docsite/rst (#20005) 8 years ago
modules_support.rst Updated wording around support for different modules 8 years ago
playbooks.rst Doc fixes (#20353) 8 years ago
playbooks_acceleration.rst consolidated docs 8 years ago
playbooks_advanced_syntax.rst Fix all RST errors for docs/docsite/rst (#20005) 8 years ago
playbooks_async.rst consolidated docs 8 years ago
playbooks_best_practices.rst Update playbooks_best_practices.rst (#21288) 8 years ago
playbooks_blocks.rst added clarification on directives/blocks 8 years ago
playbooks_checkmode.rst consolidated docs 8 years ago
playbooks_conditionals.rst service state typo 8 years ago
playbooks_debugger.rst Fix all RST errors for docs/docsite/rst (#20005) 8 years ago
playbooks_delegation.rst consolidated docs 8 years ago
playbooks_environment.rst consolidated docs 8 years ago
playbooks_error_handling.rst fixed phrasing on 0 being non error 8 years ago
playbooks_filters.rst more set/list stuff 8 years ago
playbooks_filters_ipaddr.rst Doc fixes (#20353) 8 years ago
playbooks_intro.rst Fix all RST errors for docs/docsite/rst (#20005) 8 years ago
playbooks_lookups.rst Make password lookup treat /dev/null as a special case 8 years ago
playbooks_loops.rst docks: add missing colon character 8 years ago
playbooks_prompts.rst Update references to Passlib as homepage/docsite moved (#20082) 8 years ago
playbooks_roles.rst Use HTTPS instead of legacy HTTP for ansible.com (#16870) 8 years ago
playbooks_special_topics.rst consolidated docs 8 years ago
playbooks_startnstep.rst consolidated docs 8 years ago
playbooks_strategies.rst consolidated docs 8 years ago
playbooks_tags.rst clarified tag usage 8 years ago
playbooks_templating.rst corrected which app adds plugins 8 years ago
playbooks_tests.rst Doc fixes (#20353) 8 years ago
playbooks_variables.rst Fix variable precedence of INI/script vars to be in-line with docs. 8 years ago
playbooks_vault.rst added docs for vault and made trigger shorter: !vault (#20985) 8 years ago
porting_guide_2.0.rst Some more code-block fixes 8 years ago
python_3_support.rst consolidated docs 8 years ago
quickstart.rst consolidated docs 8 years ago
test_strategies.rst consolidated docs 8 years ago
tower.rst Use HTTPS instead of legacy HTTP for ansible.com (#16870) 8 years ago