detect gather_facts as a configuration option in all cases (closes #17)

This commit is contained in:
Klaus Zerwes
2023-02-13 21:56:07 +01:00
parent f7a937248f
commit 2068d40f28

View File

@@ -86,7 +86,7 @@ _general_exclude_paths = [
# a keyword used for a module (ansible.builtin.gather_facts called by the setup task)
# and for a configuration option at play level
_general_exclude_regex = [
re.compile(r'\s*gather_facts:\s*(no|yes|true|false)', re.IGNORECASE),
re.compile(r'\s*gather_facts:\s*\S+', re.IGNORECASE),
re.compile(r'\s*-\srole:\s*\w+'),
]