mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 14:20:45 +00:00
allow 'shell' module if 'args.executable' is used
This commit is contained in:
parent
69684eb047
commit
8cc9583949
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user