mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Skip dotfile in hosts dirs
This commit is contained in:
@@ -48,6 +48,9 @@ class InventoryDirectory(object):
|
|||||||
# 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
|
||||||
continue
|
continue
|
||||||
|
# Skip hidden files
|
||||||
|
if i.startswith('.'):
|
||||||
|
continue
|
||||||
# These are things inside of an inventory basedir
|
# These are things inside of an inventory basedir
|
||||||
if i in ("host_vars", "group_vars", "vars_plugins"):
|
if i in ("host_vars", "group_vars", "vars_plugins"):
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user