Skip to content

Commit

Permalink
detect gather_facts as a configuration option in all cases (closes #17)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Feb 13, 2023
1 parent f7a9372 commit 2068d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fqcn-fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def increase_indent(self, flow=False, *dargs, **dkwargs): # pylint: disable=keyw
# 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+'),
]

Expand Down

0 comments on commit 2068d40

Please sign in to comment.