You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
412 B
YAML

7 years ago
- name: Create main LXC_Container
lxc_container:
name: {{ item.domain }}
state: started
template: archlinux
with_dict: "{{ containername }}"
when: item.clone not defined
- name: Create LXC_Container Clone
lxc_container:
name: webserver
state: sopped
backing_store: overlayfs
clone_name: {{ domain }}
clone_snapshot: true
container_config:
when: item.clone is "webserver"