blob: cda30511ab4dc2dd9a96236757d4104d15057270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
- name: Remove systemd files from systemd directory
ansible.builtin.file:
path: "{{ containers_homedir }}/.config/systemd/user/{{ item.file }}"
state: "absent"
loop_control:
label: "{{ item.name }} -> {{ item.file }}"
loop: "{{ containers_systemd }}"
register: systemd_files
- name: Reload systemd daemon
ansible.builtin.systemd:
daemon_reload: true
scope: "user"
when: systemd_files.changed
|