mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-25 01:50: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
|