allow 'shell' module if 'args.executable' is used

This commit is contained in:
Robert Kaussow 2020-09-16 11:04:52 +02:00
parent 69684eb047
commit 8cc9583949
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,3 @@
- INTERNAL
- upgrade CI pipeline to use Hugo v0.74.3
- publish to dockerhub and quay.io
- BUGFIX
- ANSIBLE0010 - allow `shell` module if `args.executable` is used
as this parameter is no longer support by command module

View File

@ -165,6 +165,11 @@ def check_shell_instead_command(candidate, settings):
if not errors:
for task in tasks:
if task["action"]["__ansible_module__"] == "shell":
# skip processing if args.executable is used as this
# parameter is no longer support by command module
if "executable" in task["action"]:
continue
if "cmd" in task["action"]:
cmd = task["action"].get("cmd", [])
else: