Skip to content

Instantly share code, notes, and snippets.

@hmartiniano
Created February 18, 2020 17:27
Show Gist options
  • Save hmartiniano/0f7ea0a881b930f824dd46ead5346345 to your computer and use it in GitHub Desktop.
Save hmartiniano/0f7ea0a881b930f824dd46ead5346345 to your computer and use it in GitHub Desktop.
---
- hosts: compute
vars:
singularity_version: 3.5.2
become: yes
tasks:
- name: install prerequisites
apt:
update_cache: yes
autoclean: yes
name:
- build-essential
- uuid-dev
- libgpgme-dev
- squashfs-tools
- libseccomp-dev
- wget
- pkg-config
- git
- cryptsetup-bin
- name: install go
snap:
name: go
classic: yes
- name: download tar
unarchive:
src: https://github.com/sylabs/singularity/releases/download/{{ singularity_version }}./singularity-{{ singularity_version }}.tar.gz
dest: /usr/local/src/singularity-{{ singularity_version }}
creates: /usr/local/src/singularity-{{ singularity_version }}
- name: build and install
shell:
chdir: /usr/local/src/singularity-{{ singularity_version }}
cmd: ./mconfig && make -C ./builddir && make -C ./builddir install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment