singularity for cobald

This commit is contained in:
2021-06-30 16:31:06 +02:00
parent 3be5025442
commit d88761ca7d
6 changed files with 21 additions and 3 deletions

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 {{unpriv_user}} for fakeroot access"
lineinfile:
line: "{{unpriv_user}}: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