Ansible_PUBLIC/roles/singularity/tasks/debian_family.yml

50 lines
1 KiB
YAML
Raw Normal View History

2020-03-14 10:53:06 +01:00
- name: Include variables
include_vars:
file: "../../../variables.yml"
- name: Install docker prerequsistes
apt:
pkg:
- squashfs-tools
- tinc
- curl
- uuid-dev
- libssl-dev
- build-essential
- name:
shell: mkdir singularity_build
- name:
shell: cd singularity_build
- name:
shell: wget https://dl.google.com/go/go{{ singularity_go_ver }}.linux-amd64.tar.gz
- name:
shell: tar -C /usr/local -xzf go{{ singularity_go_ver }}.linux-amd64.tar.gz
- name:
shell: wget https://github.com/sylabs/singularity/releases/download/v{{ singularity_ver }}/singularity-{{ singularity_ver }}.tar.gz
- name:
shell: tar -xvzf singularity-{{ singularity_ver }}.tar.gz
- name:
shell: cd singularity/
- name:
shell: PATH=$PATH:/usr/local/go/bin/
- name:
shell: ./mconfig -s --without-network -p /opt/singularity-{{ singularity_ver }}/
- name:
shell: cd builddir/
- name:
shell: make
- name:
shell: make install