dotfiles/roles/system/podman/tasks/main.yml
Matej Focko b4a1a63982
roles(system/podman): create podman configuration
Signed-off-by: Matej Focko <me@mfocko.xyz>
2023-08-30 15:42:27 +02:00

19 lines
514 B
YAML

---
- name: Packages
ansible.builtin.include_tasks: install.yml
tags: install
# UIDs/GIDs for rootless containers
- name: Set multiple gids for target user
ansible.builtin.lineinfile:
path: "/etc/subgid"
regexp: "^{{ target_user }}:"
line: "{{ target_user }}:100000:65536"
tags: podman/rootless
- name: Set multiple uids for target user
ansible.builtin.lineinfile:
path: "/etc/subuid"
regexp: "^{{ target_user }}:"
line: "{{ target_user }}:100000:65536"
tags: podman/rootless