summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2014-01-04 13:49:07 -0500
committerMichael DeHaan <michael@ansibleworks.com>2014-01-04 14:03:58 -0500
commitc039e276a2089cac804db4b0ea9072d8a27fee86 (patch)
tree829ecbfbf8d7939569e3633bdf4c3f3e4cce15ea /lib
parent87258f6d428a74c5da0eeda76f797981a9418984 (diff)
downloadansible-c039e276a2089cac804db4b0ea9072d8a27fee86.tar.gz
Fact gathering on a second play against the same hosts should not be implicitly off since this is an undocumented beheavior and potentially
rather unwanted when a play could change a fact. gather_facts: True/False can still be explicitly used per play. Reverts 564a212b3c6df0af099d97dbaee29a2e26155e89
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/playbook/play.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py
index ebd7dcbf33..92a40ba6ec 100644
--- a/lib/ansible/playbook/play.py
+++ b/lib/ansible/playbook/play.py
@@ -114,7 +114,7 @@ class Play(object):
self.sudo = ds.get('sudo', self.playbook.sudo)
self.sudo_user = ds.get('sudo_user', self.playbook.sudo_user)
self.transport = ds.get('connection', self.playbook.transport)
- self.gather_facts = ds.get('gather_facts', None)
+ self.gather_facts = ds.get('gather_facts', True)
self.remote_port = self.remote_port
self.any_errors_fatal = utils.boolean(ds.get('any_errors_fatal', 'false'))
self.accelerate = utils.boolean(ds.get('accelerate', 'false'))