From 1a0429eb5ef77e13873a53e9f7b5ff7dcd8f9a07 Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Wed, 10 Sep 2025 18:29:52 +0200 Subject: Follow the ansible recommendation of using systemd_service --- roles/ssh/handlers/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/ssh') diff --git a/roles/ssh/handlers/main.yml b/roles/ssh/handlers/main.yml index 5fd0d93a..a73aca7e 100644 --- a/roles/ssh/handlers/main.yml +++ b/roles/ssh/handlers/main.yml @@ -1,13 +1,13 @@ --- - name: "Reload systemd" become: true - ansible.builtin.systemd: + ansible.builtin.systemd_service: daemon_reload: true when: not ansible_is_chroot - name: "Restart ssh" become: true - ansible.builtin.systemd: + ansible.builtin.systemd_service: name: "{{ ssh_service_name }}" state: "restarted" when: not ansible_is_chroot -- cgit v1.2.3