This commit is contained in:
2025-05-30 22:58:35 -04:00
parent 236ec455cc
commit 704e85467d
16 changed files with 282 additions and 105 deletions

View File

@@ -0,0 +1,4 @@
- name: Restart systemd-logind
ansible.builtin.systemd:
name: systemd-logind
state: restarted

View File

@@ -0,0 +1,20 @@
- name: Install Podman
ansible.builtin.dnf:
name: ["podman", "podman-docker", "podman-compose"]
state: present
- name: Create logind.conf.d directory
ansible.builtin.file:
path: /etc/systemd/logind.conf.d
state: directory
mode: "755"
- name: Create enable-linger.conf file
ansible.builtin.copy:
dest: /etc/systemd/logind.conf.d/enable-linger.conf
content: |
[Login]
KillUserProcesses=no
UserStopDelaySec=0
mode: "644"
notify: Restart systemd-logind