Fix LXC config

This commit is contained in:
Daniel A. Maierhofer
2018-02-12 23:53:55 +01:00
parent db7230027e
commit 8da6e5f337
5 changed files with 16 additions and 7 deletions

View File

@@ -28,3 +28,4 @@ ariane_sysctls:
ariane_logrotate: True
ariane_iptables: True
ariane_zfs: True
ariane_lxc: True

View File

@@ -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

View File

@@ -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

View File

@@ -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']