Files
SlurmTests/singularity.yml
Thorsten Müller 6886541740 cleanup
2021-04-19 15:02:38 +02:00

19 lines
517 B
YAML

- yum:
name: singularity
state: present
- name: "enable user namespaces for singularity fakeroot function"
sysctl:
name: user.max_user_namespaces
value: "15000"
sysctl_file: /etc/sysctl.d/90-max_net_namespaces.conf
- name: "enable user thoto for fakeroot access"
lineinfile:
line: "thoto:4294836224:65536"
dest: "{{item}}"
with_items: ["/etc/subuid", "/etc/subgid"]
# the task above idempotentially does the same as:
#- shell:
# command: singularity config fakeroot --add thoto