Merge pull request #2244 from fdavis/virt_doc_fix

virt module doc fix
pull/2240/merge
Michael DeHaan 12 years ago
commit 22d20b4994

@ -35,21 +35,22 @@ options:
since these refer only to VM states. After starting a guest, it may not since these refer only to VM states. After starting a guest, it may not
be immediately accessible. be immediately accessible.
required: false required: false
choices: [ "running", "shutdown", "destroyed", "undefined" ] choices: [ "running", "shutdown" ]
default: "no" default: "no"
command: command:
description: description:
- in addition to state management, various non-idempotent commands are available. See examples - in addition to state management, various non-idempotent commands are available. See examples
required: false required: false
choices: ["create","status", "start", "stop", "pause", "unpause",
"shutdown", "undefine", "destroy", "get_xml", "autostart",
"freemem", "list_vms", "info", "nodeinfo", "virttype"]
examples: examples:
- code: "virt: guest=alpha state=running" - code: "virt: guest=alpha state=running"
description: "Example from Ansible Playbooks" description: "Example from Ansible Playbooks"
- code: ansible host -m virt -a "guest=alpha command=status" - code: ansible host -m virt -a "guest=alpha command=status"
description: "Example guest management with C(/usr/bin/ansible)" description: "Example guest management with C(/usr/bin/ansible)"
notes: - code: ansible host -m virt -a "guest=alpha command=get_xml"
- "Other non-idempotent commands are: C(status), C(pause), C(unpause), description: "Use C(/usr/bin/ansible) to get the xml of the guest machine alpha"
C(get_xml), C(autostart), C(freemem), C(list_vms), C(info), C(nodeinfo),
C(virttype)"
requirements: [ "libvirt" ] requirements: [ "libvirt" ]
author: Michael DeHaan, Seth Vidal author: Michael DeHaan, Seth Vidal
''' '''

Loading…
Cancel
Save