|
|
@ -36,9 +36,14 @@ class InventoryDirectory(object):
|
|
|
|
self.parsers = []
|
|
|
|
self.parsers = []
|
|
|
|
self.hosts = {}
|
|
|
|
self.hosts = {}
|
|
|
|
self.groups = {}
|
|
|
|
self.groups = {}
|
|
|
|
|
|
|
|
|
|
|
|
for i in self.names:
|
|
|
|
for i in self.names:
|
|
|
|
|
|
|
|
|
|
|
|
if i.endswith("~") or i.endswith(".orig") or i.endswith(".bak"):
|
|
|
|
if i.endswith("~") or i.endswith(".orig") or i.endswith(".bak"):
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
if i.endswith(".ini"):
|
|
|
|
|
|
|
|
# configuration file for an inventory script
|
|
|
|
|
|
|
|
continue
|
|
|
|
if i.endswith(".retry"):
|
|
|
|
if i.endswith(".retry"):
|
|
|
|
# this file is generated on a failed playbook and should only be
|
|
|
|
# this file is generated on a failed playbook and should only be
|
|
|
|
# used when run specifically
|
|
|
|
# used when run specifically
|
|
|
|