mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00: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:
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)
|
||||
Reference in New Issue
Block a user