Created
July 1, 2022 13:00
-
-
Save thanhleviet/df4fb806cbbbd5ac6f2d64d54f3ed11f to your computer and use it in GitHub Desktop.
Ansible script to install singularity deb
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: all | |
become: true | |
become_user: root | |
vars: | |
singularity_version: 3.10.0 | |
pre_tasks: | |
- name: Update apt packages | |
apt: | |
update_cache: true | |
cache_valid_time: 86400 #One day | |
- name: Install Dependencies | |
package: | |
name: ['build-essential', 'libseccomp-dev', 'libglib2.0-dev', 'pkg-config', 'squashfs-tools', 'cryptsetup', 'runc'] | |
tasks: | |
- name: Download singularity-CE | |
get_url: | |
url: "https://github.com/sylabs/singularity/releases/download/v{{ singularity_version }}/singularity-ce_{{ singularity_version }}-{{ ansible_distribution_release }}_amd64.deb" | |
dest: /opt/singularity-ce.deb | |
- name: Install singularity-CE | |
apt: deb=/opt/singularity-ce.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment