mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Cloud lxc (#3611)
* Native YAML - cloud/lxc * debug var uses naked vars
This commit is contained in:
parent
1e9333f822
commit
00eb0d27d9
1 changed files with 5 additions and 3 deletions
|
@ -268,7 +268,8 @@ EXAMPLES = """
|
||||||
register: lvm_container_info
|
register: lvm_container_info
|
||||||
|
|
||||||
- name: Debug info on container "test-container-lvm"
|
- name: Debug info on container "test-container-lvm"
|
||||||
debug: var=lvm_container_info
|
debug:
|
||||||
|
var: lvm_container_info
|
||||||
|
|
||||||
- name: Run a command in a container and ensure its in a "stopped" state.
|
- name: Run a command in a container and ensure its in a "stopped" state.
|
||||||
lxc_container:
|
lxc_container:
|
||||||
|
@ -334,7 +335,8 @@ EXAMPLES = """
|
||||||
register: clone_container_info
|
register: clone_container_info
|
||||||
|
|
||||||
- name: debug info on container "test-container"
|
- name: debug info on container "test-container"
|
||||||
debug: var=clone_container_info
|
debug:
|
||||||
|
var: clone_container_info
|
||||||
|
|
||||||
- name: Clone a container using snapshot
|
- name: Clone a container using snapshot
|
||||||
lxc_container:
|
lxc_container:
|
||||||
|
@ -364,7 +366,7 @@ EXAMPLES = """
|
||||||
|
|
||||||
- name: Destroy a container
|
- name: Destroy a container
|
||||||
lxc_container:
|
lxc_container:
|
||||||
name: "{{ item }}"
|
name: '{{ item }}'
|
||||||
state: absent
|
state: absent
|
||||||
with_items:
|
with_items:
|
||||||
- test-container-stopped
|
- test-container-stopped
|
||||||
|
|
Loading…
Reference in a new issue