diff options
Diffstat (limited to 'roles/systemd_depend_mount/handlers/main.yml')
-rw-r--r-- | roles/systemd_depend_mount/handlers/main.yml | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/roles/systemd_depend_mount/handlers/main.yml b/roles/systemd_depend_mount/handlers/main.yml index 207c203..b59b5a5 100644 --- a/roles/systemd_depend_mount/handlers/main.yml +++ b/roles/systemd_depend_mount/handlers/main.yml @@ -2,15 +2,4 @@ become: true ansible.builtin.systemd_service: daemon_reload: true - listen: systemd_depend_mount_restart - -- name: Collect installed services - ansible.builtin.service_facts: - listen: systemd_depend_mount_restart - -- name: Restart systemd services - ansible.builtin.include_tasks: service.yml - listen: systemd_depend_mount_restart - loop: "{{ systemd_depend_mount_result.results | selectattr('changed', 'equalto', true) | map(attribute='service') | list }}" - loop_control: - loop_var: service + listen: systemd_depend_mount_reload |