diff options
| author | spmfox <spmfox@foxwd.com> | 2025-09-08 20:50:17 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2025-09-08 20:50:17 -0400 |
| commit | ef5ac13b358d8c8c8615c39ba1e428afb16ff96c (patch) | |
| tree | 1505be30dfaae385b50bddca849e77f7561b05ef /roles/containers/tasks/systemd_remove.yml | |
| parent | dffc9ae4f09c25fbd33c83bf79cdb5d30250764a (diff) | |
adding support for systemd files
Diffstat (limited to 'roles/containers/tasks/systemd_remove.yml')
| -rw-r--r-- | roles/containers/tasks/systemd_remove.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/containers/tasks/systemd_remove.yml b/roles/containers/tasks/systemd_remove.yml new file mode 100644 index 0000000..cda3051 --- /dev/null +++ b/roles/containers/tasks/systemd_remove.yml @@ -0,0 +1,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 |
