Matt Martz
f1db8985e3
[stable-2.7] 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.
(cherry picked from commit 77d32b8f57
)
Co-authored-by: Matt Martz <matt@sivel.net>
2018-10-22 10:33:19 -07:00
Brian Coca
cdc762dd9e
don't assume all delegation subkeys exist ( #43032 )
...
* don't assume all delegation subkeys exist
fixes #43026
* add tests
2018-07-24 08:54:58 -04:00
Matt Martz
1401fa74cc
Cache items when task.loop/with_items is evaluated to set delegate_to vars ( #41969 )
...
* If we evaluate task.loop/with_items when calculating delegate_to vars, cache the items. Fixes #28231
* Add comments about caching loop items
* Add test for delegate_to+loop+random
* Be more careful about where we update task.loop
2018-06-26 15:10:04 -05:00
Martin Krizek
5c7f203c33
Add test for fix using loop_control with delegate_to ( #33809 )
2018-01-23 17:52:23 +01:00
Matt Clay
c26a556929
Add check for known_hosts changing during tests. ( #26470 )
...
* Add check for known_hosts changing during tests.
* Don't use known hosts file for delegate_to test.
2017-07-06 00:47:28 -07:00
Matt Clay
80a5c70ad7
Split integration tests out from Makefile. ( #17976 )
2016-10-12 14:57:53 -07:00