Skip to content

Commit 64f7871

Browse files
authored
Ignore known problematic modules from args rule (#3040)
1 parent cacaa9a commit 64f7871

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ansiblelint/rules/args.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ def matchtask(
7676
for key, value in task["action"].items()
7777
if not key.startswith("__")
7878
}
79+
# https://github.com/ansible/ansible-lint/issues/2824
80+
if loaded_module.resolved_fqcn == "ansible.builtin.async_status":
81+
module_args["_async_dir"] = "/tmp/ansible-async"
82+
if loaded_module.resolved_fqcn == "ansible.builtin.service":
83+
_logger.debug(
84+
"Skipped service module validation as not being supported yet."
85+
)
86+
return []
7987

8088
with mock.patch.object(
8189
mock_ansible_module, "AnsibleModule", CustomAnsibleModule

0 commit comments

Comments
 (0)