Ignore inventory config files when using an inventory directory.
This commit is contained in:
parent
58d72b28c5
commit
87788b1d17
1 changed files with 5 additions and 0 deletions
|
@ -36,9 +36,14 @@ class InventoryDirectory(object):
|
|||
self.parsers = []
|
||||
self.hosts = {}
|
||||
self.groups = {}
|
||||
|
||||
for i in self.names:
|
||||
|
||||
if i.endswith("~") or i.endswith(".orig") or i.endswith(".bak"):
|
||||
continue
|
||||
if i.endswith(".ini"):
|
||||
# configuration file for an inventory script
|
||||
continue
|
||||
if i.endswith(".retry"):
|
||||
# this file is generated on a failed playbook and should only be
|
||||
# used when run specifically
|
||||
|
|
Loading…
Reference in a new issue