mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
'shell' is a magic module that executes the command module with shell=True
This commit is contained in:
parent
73d20b81c6
commit
40fd778e2c
4 changed files with 30 additions and 5 deletions
|
@ -120,7 +120,7 @@ def host_report_msg(hostname, module_name, result, oneline):
|
|||
''' summarize the JSON results for a particular host '''
|
||||
buf = ''
|
||||
failed = is_failed(result)
|
||||
if module_name == 'command':
|
||||
if module_name in [ 'command', 'shell' ]:
|
||||
if not failed:
|
||||
buf = command_success_msg(hostname, result, oneline)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue