mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge pull request #15747 from larsks/bug/15744
do not erroneously set gathered_facts=True
This commit is contained in:
@@ -295,10 +295,10 @@ class PlayIterator:
|
|||||||
setup_block = self._blocks[0]
|
setup_block = self._blocks[0]
|
||||||
if setup_block.has_tasks() and len(setup_block.block) > 0:
|
if setup_block.has_tasks() and len(setup_block.block) > 0:
|
||||||
task = setup_block.block[0]
|
task = setup_block.block[0]
|
||||||
if not peek:
|
if not peek:
|
||||||
# mark the host as having gathered facts, because we're
|
# mark the host as having gathered facts, because we're
|
||||||
# returning the setup task to be executed
|
# returning the setup task to be executed
|
||||||
host.set_gathered_facts(True)
|
host.set_gathered_facts(True)
|
||||||
else:
|
else:
|
||||||
# This is the second trip through ITERATING_SETUP, so we clear
|
# This is the second trip through ITERATING_SETUP, so we clear
|
||||||
# the flag and move onto the next block in the list while setting
|
# the flag and move onto the next block in the list while setting
|
||||||
|
|||||||
Reference in New Issue
Block a user