As part of the support for access to external nodes information, save fact data into /var/lib/ansible/setup_data

OR a per-user directory when running from playbooks.  Technically this info is also available via the SETUP_CACHE
but that is a bit more complex of a construct and it would be better to not cross the streams.
This commit is contained in:
Michael DeHaan 2012-04-14 11:58:08 -04:00
parent 80a7164057
commit 6307267cf3
2 changed files with 23 additions and 3 deletions

View file

@ -313,7 +313,7 @@ class PlayBook(object):
setup_cache=SETUP_CACHE, basedir=self.basedir,
conditional=only_if, callbacks=self.runner_callbacks,
extra_vars=self.extra_vars, debug=self.debug, sudo=sudo,
transport=transport, sudo_pass=self.sudo_pass
transport=transport, sudo_pass=self.sudo_pass, is_playbook=True
)
if async_seconds == 0:
@ -475,7 +475,7 @@ class PlayBook(object):
remote_pass=self.remote_pass, remote_port=self.remote_port,
setup_cache=SETUP_CACHE,
callbacks=self.runner_callbacks, sudo=sudo, debug=self.debug,
transport=transport, sudo_pass=self.sudo_pass
transport=transport, sudo_pass=self.sudo_pass, is_playbook=True
).run()
self.stats.compute(setup_results, setup=True)