Improve lxc config
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
---
|
||||
- name: lxc - betam container
|
||||
lxc_container:
|
||||
name: lxc-betam-01
|
||||
template: debian
|
||||
|
||||
- name: lxc - betam config
|
||||
template:
|
||||
dest: /var/lib/lxc/lxc-betam-01/config
|
||||
src: lxc-betam.conf.j2
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
backup: yes
|
||||
@@ -1,14 +0,0 @@
|
||||
---
|
||||
- name: lxc - zyklon container
|
||||
lxc_container:
|
||||
name: lxc-zyklon-01
|
||||
template: voidlinux
|
||||
|
||||
- name: lxc - zyklon config
|
||||
copy:
|
||||
dest: /var/lib/lxc/lxc-zyklon-01/config
|
||||
src: lxc-zyklon.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
backup: yes
|
||||
@@ -28,3 +28,19 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
backup: yes
|
||||
|
||||
- name: lxc - create container
|
||||
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
|
||||
with_items: "{{ lxc.containers }}"
|
||||
|
||||
@@ -23,14 +23,6 @@
|
||||
when: ariane_lxc
|
||||
tags: ['ariane_lxc', 'lxc']
|
||||
|
||||
- include_tasks: lxc-betam.yml
|
||||
when: ariane_lxc
|
||||
tags: ['ariane_lxc', 'lxc']
|
||||
|
||||
- include_tasks: lxc-zyklon.yml
|
||||
when: ariane_lxc
|
||||
tags: ['ariane_lxc', 'lxc']
|
||||
|
||||
- include_tasks: snapper.yml
|
||||
when: ariane_snapper
|
||||
tags: ['ariane_snapper', 'snapper']
|
||||
|
||||
Reference in New Issue
Block a user