mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-26 13:00:18 +01:00
Merge pull request #21 from jitakirin/verify-early
Verify SSHd config early
This commit is contained in:
commit
c7cf019326
2 changed files with 2 additions and 5 deletions
|
@ -1,8 +1,4 @@
|
|||
---
|
||||
- name: check_and_reload_sshd
|
||||
command: "{{ sshd_binary }} -t"
|
||||
notify: reload_sshd
|
||||
|
||||
- name: reload_sshd
|
||||
service:
|
||||
name: "{{ sshd_service }}"
|
||||
|
|
|
@ -38,7 +38,8 @@
|
|||
owner: "{{ sshd_config_owner }}"
|
||||
group: "{{ sshd_config_group }}"
|
||||
mode: "{{ sshd_config_mode }}"
|
||||
notify: check_and_reload_sshd
|
||||
validate: "{{ sshd_binary }} -t -f %s"
|
||||
notify: reload_sshd
|
||||
tags:
|
||||
- sshd
|
||||
|
||||
|
|
Loading…
Reference in a new issue