mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-26 13:00:18 +01:00
10 lines
207 B
YAML
10 lines
207 B
YAML
---
|
|
- name: check_and_reload_sshd
|
|
command: "{{ sshd_binary }} -t"
|
|
notify: reload_sshd
|
|
|
|
- name: reload_sshd
|
|
service:
|
|
name: "{{ sshd_service }}"
|
|
state: reloaded
|
|
when: sshd_allow_reload == True
|