fix ssh handler
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# FILE: roles/common/handlers/main.yml
|
# FILE: roles/common/handlers/main.yml
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
- name: restart chrony
|
- name: restart chrony
|
||||||
systemd:
|
systemd:
|
||||||
name: chrony
|
name: chrony
|
||||||
@@ -9,5 +8,5 @@
|
|||||||
|
|
||||||
- name: restart sshd
|
- name: restart sshd
|
||||||
systemd:
|
systemd:
|
||||||
name: sshd
|
name: "{{ 'ssh' if ansible_os_family == 'Debian' else 'sshd' }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|||||||
Reference in New Issue
Block a user