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
commit1a0429eb5ef77e13873a53e9f7b5ff7dcd8f9a07 (patch)
tree8a143e817ad207379cfa9f35afe276fa41601be4 /roles/ssh
parent8b872ab73f25b0065e38aa675036feee58b35ea3 (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