mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
avoid x2 setting of set_fact when 'cacheable' (#50564)
* avoid x2 setting of set_fact when 'cacheable' fixes #50556 * ammend docs to new behaviour * added period
This commit is contained in:
parent
c7f3829ad4
commit
207848f354
4 changed files with 7 additions and 6 deletions
|
@ -1036,8 +1036,7 @@ Basically, anything that goes into "role defaults" (the defaults folder inside t
|
|||
.. [1] Tasks in each role will see their own role's defaults. Tasks defined outside of a role will see the last role's defaults.
|
||||
.. [2] Variables defined in inventory file or provided by dynamic inventory.
|
||||
.. [3] Includes vars added by 'vars plugins' as well as host_vars and group_vars which are added by the default vars plugin shipped with Ansible.
|
||||
.. [4] When created with set_facts's cacheable option, variables will have the high precedence in the play,
|
||||
but will be the same as a host facts precedence when they come from the cache.
|
||||
.. [4] When created with set_facts's cacheable option.
|
||||
|
||||
.. note:: Within any section, redefining a var will overwrite the previous instance.
|
||||
If multiple groups have the same variable, the last one loaded wins.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue