1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/executor
Lars Kellogg-Stedman 21ac95402f do not erroneously set gathered_facts=True
In `lib/ansible/executor/play_iterator.py`, ansible sets a host's
`_gathered_facts` property to `True` without checking to see if there
are any tasks to be executed.  In the event that the entire play is
skipped, `_gathered_facts` will be `True` even though the `setup`
module was never run.

This patch modifies the logic to only set `_gathered_facts` to `True`
when there are tasks to execute.

Closes #15744.
2016-05-05 23:45:06 -04:00
..
process
__init__.py
module_common.py Fix the mapping of module_name to Locks 2016-04-29 20:47:51 -07:00
play_iterator.py do not erroneously set gathered_facts=True 2016-05-05 23:45:06 -04:00
playbook_executor.py
stats.py
task_executor.py check that variable first 2016-05-05 11:14:11 -04:00
task_queue_manager.py
task_result.py add jimi-c's unit test for squashed skip results, tweaked is_skipped() logic to pass 2016-05-05 15:29:10 -07:00