Files
ansible-fet/roles/ariane/tasks/lxc_void.yml
Daniel A. Maierhofer 19000dbae8 Fix Ansible upgrade
2018-07-13 01:10:17 +02:00

29 lines
997 B
YAML

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