mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 12:14:25 -07:00
Document return values for command module
This commit is contained in:
parent
afa3206205
commit
b7fbc57227
1 changed files with 25 additions and 0 deletions
|
@ -87,6 +87,31 @@ EXAMPLES = '''
|
||||||
register: myoutput
|
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 datetime
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue