summaryrefslogtreecommitdiffstats
path: root/roles/ssh
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-10 18:29:52 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-10 18:29:52 +0200
commitb0e3077544a341bc8ec2308652a98cf928c58064 (patch)
tree8a143e817ad207379cfa9f35afe276fa41601be4 /roles/ssh
parent6ddc1505a11c74ffb0c8c65498f5eef5086e62d1 (diff)
Follow the ansible recommendation of using systemd_service
Diffstat (limited to 'roles/ssh')
-rw-r--r--roles/ssh/handlers/main.yml4
1 files changed, 2 insertions, 2 deletions
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