dotfiles/roles/system/podman/tasks/main.yml

20 lines
514 B
YAML
Raw Normal View History

---
- 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