testing
This commit is contained in:
14
roles/podman/tasks/main.yml
Normal file
14
roles/podman/tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user