Skip to content

Commit

Permalink
Ignore known problematic modules from args rule (#3040)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Feb 15, 2023
1 parent cacaa9a commit 64f7871
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ansiblelint/rules/args.py
Expand Up @@ -76,6 +76,14 @@ def matchtask(
for key, value in task["action"].items()
if not key.startswith("__")
}
# https://github.com/ansible/ansible-lint/issues/2824
if loaded_module.resolved_fqcn == "ansible.builtin.async_status":
module_args["_async_dir"] = "/tmp/ansible-async"
if loaded_module.resolved_fqcn == "ansible.builtin.service":
_logger.debug(
"Skipped service module validation as not being supported yet."
)
return []

with mock.patch.object(
mock_ansible_module, "AnsibleModule", CustomAnsibleModule
Expand Down

0 comments on commit 64f7871

Please sign in to comment.