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