testing
This commit is contained in:
4
roles/podman/handlers/main.yml
Normal file
4
roles/podman/handlers/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: Restart systemd-logind
|
||||
ansible.builtin.systemd:
|
||||
name: systemd-logind
|
||||
state: restarted
|
20
roles/podman/tasks/main.yml
Normal file
20
roles/podman/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user