mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Native YAML - cloud/misc (#3615)
* Native YAML - cloud/misc * Fix mistake
This commit is contained in:
parent
75f9cb30e1
commit
2f369dff88
5 changed files with 205 additions and 49 deletions
|
@ -66,7 +66,9 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
# a playbook task line:
|
||||
- virt: name=alpha state=running
|
||||
- virt:
|
||||
name: alpha
|
||||
state: running
|
||||
|
||||
# /usr/bin/ansible invocations
|
||||
ansible host -m virt -a "name=alpha command=status"
|
||||
|
@ -76,12 +78,16 @@ ansible host -m virt -a "name=alpha command=create uri=lxc:///"
|
|||
# a playbook example of defining and launching an LXC guest
|
||||
tasks:
|
||||
- name: define vm
|
||||
virt: name=foo
|
||||
command=define
|
||||
xml="{{ lookup('template', 'container-template.xml.j2') }}"
|
||||
uri=lxc:///
|
||||
virt:
|
||||
name: foo
|
||||
command: define
|
||||
xml: '{{ lookup('template', 'container-template.xml.j2') }}'
|
||||
uri: 'lxc:///'
|
||||
- name: start vm
|
||||
virt: name=foo state=running uri=lxc:///
|
||||
virt:
|
||||
name: foo
|
||||
state: running
|
||||
uri: 'lxc:///'
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue