From b7fbc57227650a0aab05231bf245889f247484dd Mon Sep 17 00:00:00 2001 From: Prasad Katti Date: Fri, 29 Sep 2017 22:50:39 -0700 Subject: [PATCH] Document return values for command module --- lib/ansible/modules/commands/command.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lib/ansible/modules/commands/command.py b/lib/ansible/modules/commands/command.py index c687f0e4974..ba30520bae5 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