Add partial doc on return value of virt (#2116)

This commit is contained in:
Michael Scherer 2016-04-27 16:47:44 +02:00 committed by Brian Coca
parent 0b66156f25
commit 95018b5fe8

View file

@ -84,6 +84,23 @@ tasks:
virt: name=foo state=running uri=lxc:///
'''
RETURN = '''
# for list_vms command
list_vms:
description: The list of vms defined on the remote system
type: dictionary
returned: success
sample: [
"build.example.org",
"dev.example.org"
]
# for status command
status:
description: The status of the VM, among running, crashed, paused and shutdown
type: string
sample: "success"
returned: success
'''
VIRT_FAILED = 1
VIRT_SUCCESS = 0
VIRT_UNAVAILABLE=2