ignore ssh keys inside inventory dir

This commit is contained in:
2025-12-17 14:33:56 +08:00
parent 36cf8054ce
commit fa1b04dee9

View File

@@ -673,7 +673,7 @@ inventory=./inventories
;ignore_extensions=.pyc, .pyo, .swp, .bak, ~, .rpm, .md, .txt, .rst, .orig, .ini, .cfg, .retry
# (list) List of patterns to ignore when using a directory as an inventory source.
;ignore_patterns=
ignore_patterns=^id_.+(?:\.pub)?$
# (bool) If 'true' it is a fatal error if every single potential inventory source fails to parse, otherwise, this situation will only attract a warning.