Document return values for command module

This commit is contained in:
Prasad Katti 2017-09-29 22:50:39 -07:00 committed by Dag Wieers
parent afa3206205
commit b7fbc57227

View file

@ -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