mirror of
https://github.com/willshersystems/ansible-sshd
synced 2025-01-12 02:00:19 +01:00
d0b2b029a1
This uses the validate option to check the config file early, which avoids putting bad settings in place at all, and also enables a fail-fast behaviour (errors out when processing the template module).
6 lines
120 B
YAML
6 lines
120 B
YAML
---
|
|
- name: reload_sshd
|
|
service:
|
|
name: "{{ sshd_service }}"
|
|
state: reloaded
|
|
when: sshd_allow_reload == True
|