added singularity

This commit is contained in:
panda 2020-03-14 10:53:06 +01:00
parent 7eb3f3d8ad
commit 2d15791ead
4 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,49 @@
- 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

View file

@ -0,0 +1,10 @@
---
#- include: ubuntu.yml
# when: ansible_distribution == 'Ubuntu'
- include: debian_family.yml
when: ansible_os_family == 'Debian'
#- include: redhat.yml
# when: ansible_os_family == 'RedHat'

7
singularity.yml Normal file
View file

@ -0,0 +1,7 @@
---
- name: "singularity"
hosts: thismachine
connection: local
roles:
- singularity

View file

@ -3,3 +3,5 @@ users:
tinc_vpn: vpn
hostname: common_hostname
compose_ver: 1.25.4
singularity_go_ver: 1.13.6
singularity_ver: 3.5.2