Simplify lxc usage

This commit is contained in:
Daniel A. Maierhofer
2018-03-16 18:49:00 +01:00
parent 7e554978cf
commit 0c12a5dfe5
3 changed files with 6 additions and 32 deletions

View File

@@ -33,14 +33,5 @@
lxc_container:
name: "lxc-{{ item.name }}-{{ item.revision }}"
template: "{{ item.template }}"
with_items: "{{ lxc.containers }}"
- name: lxc - config
template:
dest: "/var/lib/lxc/lxc-{{ item.name }}-{{ item.revision }}/config"
src: lxc.j2
owner: root
group: root
mode: 0644
backup: yes
container_config: "{{ item.config}}"
with_items: "{{ lxc.containers }}"