Fix LXC config
This commit is contained in:
@@ -28,3 +28,4 @@ ariane_sysctls:
|
|||||||
ariane_logrotate: True
|
ariane_logrotate: True
|
||||||
ariane_iptables: True
|
ariane_iptables: True
|
||||||
ariane_zfs: True
|
ariane_zfs: True
|
||||||
|
ariane_lxc: True
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
lxc.network.type = veth
|
lxc.network.type = veth
|
||||||
lxc.network.link = lxcbr0
|
lxc.network.link = br0
|
||||||
lxc.network.flags = up
|
lxc.network.flags = up
|
||||||
#lxc.network.hwaddr = 00:16:3e:33:33:33
|
|
||||||
|
lxc.aa_profile = unconfined
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: iptables - install iptables-persistent
|
- name: iptables - install iptables-persistent
|
||||||
apt: name=iptables-persistent
|
apt: name=iptables-persistent
|
||||||
|
|
||||||
- name: /etc/iptables/rules.v4
|
- name: /etc/iptables/rules.v4
|
||||||
|
|||||||
@@ -2,21 +2,24 @@
|
|||||||
- name: lxc - install lxc
|
- name: lxc - install lxc
|
||||||
apt: name=lxc
|
apt: name=lxc
|
||||||
|
|
||||||
|
- name: lxc - install libpam-cgfs
|
||||||
|
apt: name=libpam-cgfs
|
||||||
|
|
||||||
- name: lxc - install bridge-utils
|
- name: lxc - install bridge-utils
|
||||||
apt: name=bridge-utils
|
apt: name=bridge-utils
|
||||||
|
|
||||||
- name: lxc - /etc/default/lxc-net
|
- name: lxc - /etc/default/lxc-net
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/default/lxc-net
|
dest: /etc/default/lxc-net
|
||||||
content: 'USE_LXC_BRIDGE="true"\n'
|
content: 'USE_LXC_BRIDGE="true"'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: lxc - /etc/lxc/default
|
- name: lxc - /etc/lxc/default.conf
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/lxc/default
|
dest: /etc/lxc/default.conf
|
||||||
src: lxc_default.conf
|
src: lxc_default.conf
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|||||||
@@ -16,5 +16,9 @@
|
|||||||
tags: ['ariane_iptables', 'iptables']
|
tags: ['ariane_iptables', 'iptables']
|
||||||
|
|
||||||
- include: zfs.yml
|
- include: zfs.yml
|
||||||
whan: ariane_zfs
|
when: ariane_zfs
|
||||||
tags: ['ariane_zfs', 'zfs']
|
tags: ['ariane_zfs', 'zfs']
|
||||||
|
|
||||||
|
- include: lxc.yml
|
||||||
|
when: ariane_lxc
|
||||||
|
tags: ['ariane_lxc', 'lxc']
|
||||||
|
|||||||
Reference in New Issue
Block a user