diff options
-rw-r--r-- | lib/ansible/modules/commands/command.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/ansible/modules/commands/command.py b/lib/ansible/modules/commands/command.py index c687f0e497..ba30520bae 100644 --- a/lib/ansible/modules/commands/command.py +++ b/lib/ansible/modules/commands/command.py @@ -87,6 +87,31 @@ EXAMPLES = ''' register: myoutput ''' +RETURN = ''' +cmd: + description: the cmd that was run on the remote machine + returned: always + type: list + sample: + - echo + - hello +delta: + description: cmd end time - cmd start time + returned: always + type: string + sample: '0:00:00.001529' +end: + description: cmd end time + returned: always + type: string + sample: '2017-09-29 22:03:48.084657' +start: + description: cmd start time + returned: always + type: string + sample: '2017-09-29 22:03:48.083128' +''' + import datetime import glob import os |