Commit d500398e by Michael DeHaan

Merge pull request #1616 from dagwieers/skip-register

Do not register variable if host has been skipped
parents 52e2654f 302eeae6
...@@ -301,6 +301,9 @@ class PlayBook(object): ...@@ -301,6 +301,9 @@ class PlayBook(object):
# add facts to the global setup cache # add facts to the global setup cache
for host, result in contacted.iteritems(): for host, result in contacted.iteritems():
# Skip register variable if host is skipped
if result.get('skipped', False):
continue
facts = result.get('ansible_facts', {}) facts = result.get('ansible_facts', {})
self.SETUP_CACHE[host].update(facts) self.SETUP_CACHE[host].update(facts)
if task.register: if task.register:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment