38 lines
795 B
YAML
38 lines
795 B
YAML
---
|
|
- name: lxc - install lxc
|
|
package: name=lxc
|
|
|
|
- name: lxc - install libpam-cgfs
|
|
package: name=libpam-cgfs
|
|
|
|
- name: lxc - install bridge-utils
|
|
package: name=bridge-utils
|
|
|
|
- name: lxc - install python-lxc
|
|
package: name=python-lxc
|
|
|
|
- name: lxc - /etc/default/lxc-net
|
|
copy:
|
|
dest: /etc/default/lxc-net
|
|
content: 'USE_LXC_BRIDGE="true"'
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
backup: yes
|
|
|
|
- name: lxc - /etc/lxc/default.conf
|
|
copy:
|
|
dest: /etc/lxc/default.conf
|
|
src: lxc_default.conf
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
backup: yes
|
|
|
|
- name: lxc - create container
|
|
lxc_container:
|
|
name: "lxc-{{ item.name }}-{{ item.revision }}"
|
|
template: "{{ item.template }}"
|
|
container_config: "{{ item.config}}"
|
|
with_items: "{{ lxc.containers }}"
|