mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 22:30:42 +00:00
allow 'shell' module if 'args.executable' is used
This commit is contained in:
parent
69684eb047
commit
8cc9583949
@ -1,3 +1,3 @@
|
|||||||
- INTERNAL
|
- BUGFIX
|
||||||
- upgrade CI pipeline to use Hugo v0.74.3
|
- ANSIBLE0010 - allow `shell` module if `args.executable` is used
|
||||||
- publish to dockerhub and quay.io
|
as this parameter is no longer support by command module
|
||||||
|
@ -165,6 +165,11 @@ def check_shell_instead_command(candidate, settings):
|
|||||||
if not errors:
|
if not errors:
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
if task["action"]["__ansible_module__"] == "shell":
|
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"]:
|
if "cmd" in task["action"]:
|
||||||
cmd = task["action"].get("cmd", [])
|
cmd = task["action"].get("cmd", [])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user