Use FQCN for lxc_container module
This is currently using a redirect from ansible.builtin.lxc_container to community.general.lxc_container, so be explicit about which module we are using. Change-Id: I9cdde57a10c7249687ee47fe91a3e84160b46ce1
This commit is contained in:
parent
d6f0630c8c
commit
0b897c1eb0
|
@ -54,7 +54,7 @@
|
||||||
- Lxc container restart
|
- Lxc container restart
|
||||||
|
|
||||||
- name: Create and start the container
|
- name: Create and start the container
|
||||||
lxc_container:
|
community.general.lxc_container:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
state: started
|
state: started
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Create container (dir)
|
- name: Create container (dir)
|
||||||
lxc_container:
|
community.general.lxc_container:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
container_log: true
|
container_log: true
|
||||||
container_log_level: "{{ (debug | bool) | ternary('DEBUG', 'INFO') }}"
|
container_log_level: "{{ (debug | bool) | ternary('DEBUG', 'INFO') }}"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Create container (lvm)
|
- name: Create container (lvm)
|
||||||
lxc_container:
|
community.general.lxc_container:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
container_log: true
|
container_log: true
|
||||||
container_log_level: "{{ (debug | bool) | ternary('DEBUG', 'INFO') }}"
|
container_log_level: "{{ (debug | bool) | ternary('DEBUG', 'INFO') }}"
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# will build and store all containers using a copy-on-write
|
# will build and store all containers using a copy-on-write
|
||||||
# snapshot from the base image stored withine machinectl.
|
# snapshot from the base image stored withine machinectl.
|
||||||
- name: Create container (machinectl)
|
- name: Create container (machinectl)
|
||||||
lxc_container:
|
community.general.lxc_container:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
container_log: true
|
container_log: true
|
||||||
container_log_level: "{{ (debug | bool) | ternary('DEBUG', 'INFO') }}"
|
container_log_level: "{{ (debug | bool) | ternary('DEBUG', 'INFO') }}"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
- name: Delete container from host
|
- name: Delete container from host
|
||||||
lxc_container:
|
community.general.lxc_container:
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
|
|
Loading…
Reference in New Issue