|
|
@ -433,11 +433,11 @@ class PlayBook(object):
|
|
|
|
def _do_setup_step(self, play):
|
|
|
|
def _do_setup_step(self, play):
|
|
|
|
''' get facts from the remote system '''
|
|
|
|
''' get facts from the remote system '''
|
|
|
|
|
|
|
|
|
|
|
|
host_list = self._list_available_hosts(play.hosts)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if play.gather_facts is False:
|
|
|
|
if play.gather_facts is False:
|
|
|
|
return {}
|
|
|
|
return {}
|
|
|
|
elif play.gather_facts is None:
|
|
|
|
|
|
|
|
|
|
|
|
host_list = self._list_available_hosts(play.hosts)
|
|
|
|
|
|
|
|
if play.gather_facts is None:
|
|
|
|
host_list = [h for h in host_list if h not in self.SETUP_CACHE or 'module_setup' not in self.SETUP_CACHE[h]]
|
|
|
|
host_list = [h for h in host_list if h not in self.SETUP_CACHE or 'module_setup' not in self.SETUP_CACHE[h]]
|
|
|
|
if len(host_list) == 0:
|
|
|
|
if len(host_list) == 0:
|
|
|
|
return {}
|
|
|
|
return {}
|
|
|
|