summaryrefslogtreecommitdiff
path: root/lib/ansible/executor
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2019-03-08 13:08:37 -0500
committerGitHub <noreply@github.com>2019-03-08 13:08:37 -0500
commit8940732b580822b4df5c18d1f21907bbc4f1e0cb (patch)
treec5a075d02b121aac54e309720db889ebd0d97b60 /lib/ansible/executor
parent90bcff3d92a7ec289d25896ff120e15bf7dace38 (diff)
downloadansible-8940732b580822b4df5c18d1f21907bbc4f1e0cb.tar.gz
Configurable and parallel gather facts (#49399)
* Configurable list of facts modules (#31783) - allow for args dict for specific modules - add way to pass parameters - avoid facts poluting test - move to 'facts gathered' flag - add 'gathering' setting tests - allow parallel option in case serialization is too slow - added support to automatically map network facts uses "smart" connection mapping
Diffstat (limited to 'lib/ansible/executor')
-rw-r--r--lib/ansible/executor/play_iterator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py
index 5a32a1d52b..51615ff618 100644
--- a/lib/ansible/executor/play_iterator.py
+++ b/lib/ansible/executor/play_iterator.py
@@ -160,7 +160,7 @@ class PlayIterator:
# the others.
setup_block.run_once = False
setup_task = Task(block=setup_block)
- setup_task.action = 'setup'
+ setup_task.action = 'gather_facts'
setup_task.name = 'Gathering Facts'
setup_task.args = {
'gather_subset': gather_subset,
@@ -287,7 +287,7 @@ class PlayIterator:
if (gathering == 'implicit' and implied) or \
(gathering == 'explicit' and boolean(self._play.gather_facts, strict=False)) or \
- (gathering == 'smart' and implied and not (self._variable_manager._fact_cache.get(host.name, {}).get('module_setup', False))):
+ (gathering == 'smart' and implied and not (self._variable_manager._fact_cache.get(host.name, {}).get('_ansible_facts_gathered', False))):
# The setup block is always self._blocks[0], as we inject it
# during the play compilation in __init__ above.
setup_block = self._blocks[0]