Add lxc template
This commit is contained in:
4
roles/ariane/files/lxc_default.conf
Normal file
4
roles/ariane/files/lxc_default.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
lxc.network.type = veth
|
||||
lxc.network.link = lxcbr0
|
||||
lxc.network.flags = up
|
||||
#lxc.network.hwaddr = 00:16:3e:33:33:33
|
||||
26
roles/ariane/tasks/lxc.yml
Normal file
26
roles/ariane/tasks/lxc.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: lxc - install lxc
|
||||
apt: name=lxc
|
||||
|
||||
- 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'
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
backup: yes
|
||||
|
||||
- name: lxc - /etc/lxc/default
|
||||
copy:
|
||||
dest: /etc/lxc/default
|
||||
src: lxc_default.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
backup: yes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user