Add lxc void template and xbps
This commit is contained in:
@@ -21,13 +21,7 @@
|
||||
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
|
||||
copy: dest=/etc/lxc/default.conf src=lxc_default.conf owner=root group=root mode=0644 backup=yes
|
||||
|
||||
- name: lxc - create container
|
||||
lxc_container:
|
||||
|
||||
28
roles/ariane/tasks/lxc_void.yml
Normal file
28
roles/ariane/tasks/lxc_void.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: lxc - install xbps build depencies
|
||||
package: name="{{ item }}"
|
||||
with_items:
|
||||
- zlib1g-dev
|
||||
- pkg-config
|
||||
- libarchive-dev
|
||||
- libssl1.0-dev
|
||||
|
||||
- name: lxc - xbps git
|
||||
git:
|
||||
repo: https://github.com/voidlinux/xbps.git
|
||||
dest: /opt/xbps
|
||||
force: yes
|
||||
register: git_clone
|
||||
|
||||
- name: lxc - xbps build and install
|
||||
shell: cd /opt/xbps && /opt/xbps/configure --enable-debug && make && make install clean && ldconfig
|
||||
when: git_clone.changed
|
||||
|
||||
- name: lxc - /usr/share/lxc/templates/lxc-voidlinux
|
||||
copy: dest=/usr/share/lxc/templates/lxc-voidlinux src=lxc-voidlinux owner=root group=root mode=0755 backup=yes
|
||||
|
||||
- name: lxc - /usr/share/lxc/config/voidlinux.common.conf
|
||||
copy: dest=/usr/share/lxc/config/voidlinux.common.conf src=voidlinux.common.conf owner=root group=root mode=0644 backup=yes
|
||||
|
||||
- name: lxc - /usr/share/lxc/config/voidlinux.userns.conf
|
||||
copy: dest=/usr/share/lxc/config/voidlinux.userns.conf src=voidlinux.userns.conf owner=root group=root mode=0644 backup=yes
|
||||
@@ -23,6 +23,10 @@
|
||||
when: ariane_lxc
|
||||
tags: ['ariane_lxc', 'lxc']
|
||||
|
||||
- include_tasks: lxc_void.yml
|
||||
when: ariane_lxc_void
|
||||
tags: ['ariane_lxc_void', 'lxc', 'lxc_void']
|
||||
|
||||
- include_tasks: snapper.yml
|
||||
when: ariane_snapper
|
||||
tags: ['ariane_snapper', 'snapper']
|
||||
|
||||
Reference in New Issue
Block a user