29 lines
979 B
YAML
29 lines
979 B
YAML
---
|
|
- name: lxc - install xbps build depencies
|
|
package: "name={{ item }}"
|
|
with_items:
|
|
- zlib1g-dev
|
|
- pkg-config
|
|
- libarchive-dev
|
|
- libssl-dev
|
|
|
|
- name: lxc - xbps git
|
|
git:
|
|
repo: https://github.com/void-linux/xbps.git
|
|
dest: /opt/xbps
|
|
force: yes
|
|
register: git_clone
|
|
|
|
- name: lxc - xbps build and install
|
|
shell: cd /opt/xbps && /opt/xbps/configure && 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
|