Skip to content
Snippets Groups Projects
Commit a9b388bd authored by nimrod's avatar nimrod
Browse files

Moved the userns and subuid tasks to the correct file.

parent 92531c1b
Branches
No related tags found
No related merge requests found
......@@ -53,23 +53,3 @@
direction: in
interface: docker0
rule: allow
- name: Set UID/GID mapping range
loop:
- /etc/subgid
- /etc/subuid
copy:
content: |
nimrod:100000:65536
dest: |-
{{ item }}
group: root
mode: 0o0644
owner: root
- name: Allow unprivileged user namespaces
when: ansible_facts.distribution_major_version|int < 11
ansible.posix.sysctl:
name: kernel/unprivileged_userns_clone
state: present
value: "1"
---
- name: Set UID/GID mapping range
loop:
- /etc/subgid
- /etc/subuid
copy:
content: |
nimrod:100000:65536
dest: |-
{{ item }}
group: root
mode: 0o0644
owner: root
- name: Allow unprivileged user namespaces
when: ansible_facts.distribution_major_version|int < 11
ansible.posix.sysctl:
name: kernel/unprivileged_userns_clone
state: present
value: "1"
- name: Install Podman from the Kubic repository
# yamllint disable-line rule:line-length
when: ansible_facts.distribution_release is in ["buster", "bionic", "focal", "hera", "odin"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment