Skip to content

abims-sbr/ansible-singularity

Repository files navigation

Ansible Role: Singularity

Build Status

An Ansible Role that installs Singularity on Linux.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

# Singularity target version
singularity_version: "3.0.3"

From the role gantsign.golang

# Base installation directory the Go language SDK distribution
golang_install_dir: '/opt/go/{{ golang_version }}'

# Location for GOPATH environment variable
golang_gopath: /opt/go/packages

Dependencies

Roles:

Example Playbook

- hosts: hpc-nodes
  pre_tasks:
    - name: create a folder for go
      file:
        path: "{{ golang_install_dir }}"
        recurse: yes
    - name: apt update
      apt:
        cache_valid_time: 3600
        update_cache: yes
      when: ansible_os_family == "Debian"
  roles:
    - singularity

License

GNU General Public License v3.0

Author Information

This role was created in 2019 by Gildas Le Corguillé