From b0e3077544a341bc8ec2308652a98cf928c58064 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