21 lines
509 B
YAML
21 lines
509 B
YAML
- 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
|