diff options
author | James Cammarata <jimi@sngx.net> | 2016-05-12 10:22:45 -0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-05-12 10:22:45 -0400 |
commit | 08f6283c3fd136c6bba09e33ead18c8c767bc3af (patch) | |
tree | fcff0d0d3587d4d4080b1725930ad5e71adf53e0 | |
parent | 64a738ce5108c60922c8ceacd9cf8eabe37fbd6f (diff) | |
parent | 21ac95402f77ccbf2c19f03f37334d08ac24630e (diff) | |
download | ansible-08f6283c3fd136c6bba09e33ead18c8c767bc3af.tar.gz |
Merge pull request #15747 from larsks/bug/15744
do not erroneously set gathered_facts=True
-rw-r--r-- | lib/ansible/executor/play_iterator.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py index 7fa396307b..0b46c3925e 100644 --- a/lib/ansible/executor/play_iterator.py +++ b/lib/ansible/executor/play_iterator.py @@ -295,10 +295,10 @@ class PlayIterator: setup_block = self._blocks[0] if setup_block.has_tasks() and len(setup_block.block) > 0: task = setup_block.block[0] - if not peek: - # mark the host as having gathered facts, because we're - # returning the setup task to be executed - host.set_gathered_facts(True) + if not peek: + # mark the host as having gathered facts, because we're + # returning the setup task to be executed + host.set_gathered_facts(True) else: # This is the second trip through ITERATING_SETUP, so we clear # the flag and move onto the next block in the list while setting |