Browse code

Skip already failed hosts

Fixes #1699.

Daniel Hokka Zakrisson authored on 2012/11/28 08:54:08
Showing 1 changed files
... ...
@@ -390,7 +390,8 @@ class PlayBook(object):
390 390
 
391 391
         # now with that data, handle contentional variable file imports!
392 392
 
393
-        all_hosts = self.inventory.list_hosts(play.hosts)
393
+        all_hosts = [ h for h in self.inventory.list_hosts(play.hosts)
394
+                    if not (h in self.stats.failures or h in self.stats.dark) ]
394 395
         play.update_vars_files(all_hosts)
395 396
 
396 397
         serialized_batch = []