Created
February 18, 2020 17:27
-
-
Save hmartiniano/0f7ea0a881b930f824dd46ead5346345 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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