mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -07:00
Don't use the task for a cache, return a special cache var (#47243)
* Don't use task to cache loop results, use hostvars. Fixes #47207 * Avoid a race condition, supply _ansible_loop_cache through get_vars directly * Add tests * Add changelog fragment * Remove unnecessary copy * Remove unnecessary host from _get_delegated_vars signature
This commit is contained in:
parent
9e2c02455a
commit
77d32b8f57
5 changed files with 63 additions and 10 deletions
2
changelogs/fragments/delegate_to_loop_hostvars.yaml
Normal file
2
changelogs/fragments/delegate_to_loop_hostvars.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- delegate_to - When templating ``delegate_to`` in a loop, don't use the task for a cache, return a special cache through ``get_vars`` allowing looping over a hostvar (https://github.com/ansible/ansible/issues/47207)
|
Loading…
Add table
Add a link
Reference in a new issue