aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/systemd_depend_iface/tasks
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-19 15:03:30 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-19 15:03:33 +0200
commit3c55245c39d78dde94705f49ae1ec0d85c678190 (patch)
treed888d72c9bedac7b483787f304a332c9a8998d44 /roles/systemd_depend_iface/tasks
parentapt: _actually_ don't reboot after cleaning up dependencies (diff)
downloadinfra-ansible-3c55245c39d78dde94705f49ae1ec0d85c678190.tar.gz
infra-ansible-3c55245c39d78dde94705f49ae1ec0d85c678190.zip
systemd_depend_*: don't restart services
First, I don't think it's even necessary. If the service wasn't running, then we don't need to restart it. If it was running, it'll continue running fine with a new dependency; it'll be picked up on a future restart. Second, all of that doesn't even work due to (another) weird way Ansible treats handlers: https://github.com/ansible/ansible/issues/81722
Diffstat (limited to 'roles/systemd_depend_iface/tasks')
-rw-r--r--roles/systemd_depend_iface/tasks/main.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/roles/systemd_depend_iface/tasks/main.yml b/roles/systemd_depend_iface/tasks/main.yml
index 1bc8590..d99a445 100644
--- a/roles/systemd_depend_iface/tasks/main.yml
+++ b/roles/systemd_depend_iface/tasks/main.yml
@@ -18,11 +18,10 @@
owner: root
group: root
mode: '644'
- register: systemd_depend_iface_result
- notify: systemd_depend_iface_restart
+ notify: systemd_depend_iface_reload
loop: '{{ systemd_depend_iface_services }}'
loop_control:
loop_var: service
-- name: Restart systemd services if necessary
+- name: Reload systemd services if necessary
ansible.builtin.meta: flush_handlers