Skip to content

Commit 2068d40

Browse files
committed
detect gather_facts as a configuration option in all cases (closes #17)
1 parent f7a9372 commit 2068d40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fqcn-fixer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def increase_indent(self, flow=False, *dargs, **dkwargs): # pylint: disable=keyw
8686
# a keyword used for a module (ansible.builtin.gather_facts called by the setup task)
8787
# and for a configuration option at play level
8888
_general_exclude_regex = [
89-
re.compile(r'\s*gather_facts:\s*(no|yes|true|false)', re.IGNORECASE),
89+
re.compile(r'\s*gather_facts:\s*\S+', re.IGNORECASE),
9090
re.compile(r'\s*-\srole:\s*\w+'),
9191
]
9292

0 commit comments

Comments
 (0)