diff options
author | Prasad Katti <Prasad.Katti@teradata.com> | 2017-09-29 22:50:39 -0700 |
---|---|---|
committer | Dag Wieers <dag@wieers.com> | 2017-09-30 19:57:02 +0200 |
commit | b7fbc57227650a0aab05231bf245889f247484dd (patch) | |
tree | 5b344d4831fbb1de2cf3b69033f35bd7d156d852 | |
parent | afa3206205a49cd08d0adae628cd9be8d27f8145 (diff) | |
download | ansible-b7fbc57227650a0aab05231bf245889f247484dd.tar.gz |
Document return values for command module
-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 |