This commit is contained in:
Thorsten Müller
2021-04-19 15:02:38 +02:00
parent 76f62b0cf4
commit 6886541740
6 changed files with 192 additions and 188 deletions

18
singularity.yml Normal file
View File

@@ -0,0 +1,18 @@
- 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