This commit is contained in:
2025-05-30 00:22:44 -04:00
parent 236ec455cc
commit 13ca7761c2
14 changed files with 195 additions and 71 deletions

View File

@@ -0,0 +1,14 @@
- name: Install Podman
ansible.builtin.dnf:
name: ["podman", "podman-docker", "podman-compose"]
state: present
- name: Check if linger file exists
ansible.builtin.stat:
path: "/var/lib/systemd/linger/{{ target_user }}"
register: linger_file
changed_when: false
- name: Enable lingering if file doesn't exist
ansible.builtin.command: loginctl enable-linger {{ target_user }}
when: not linger_file.stat.exists