feat: Add rootful capability

This commit is contained in:
2026-04-20 17:21:32 +02:00
parent da83cf1e00
commit 801b9b4cb9
8 changed files with 128 additions and 100 deletions

View File

@@ -1,15 +1,24 @@
---
# tasks file for podman
- name: Disable global podman auto-update
ansible.builtin.systemd_service:
name: podman-auto-update.timer
enabled: false
- name: Create dedicated group
ansible.builtin.group:
name: "{{ podman_user }}"
become: true
- name: Create dedicated user
ansible.builtin.user:
name: "{{ podman_user }}"
comment: Dedicated Podman user
home: "{{ podman_user_homedir }}"
password_lock: true
shell: /bin/bash
group: podman
become: true
- name: Enable lingering for podman user
ansible.builtin.command:
cmd: "{{ item }}"
cmd: "{{ item }}"
creates: /var/lib/systemd/linger/{{ podman_user }}
become: true
loop: