Merge pull request #21 from jitakirin/verify-early

Verify SSHd config early
This commit is contained in:
Matt Willsher 2015-06-28 09:34:03 +01:00
commit c7cf019326
2 changed files with 2 additions and 5 deletions

View file

@ -1,8 +1,4 @@
--- ---
- name: check_and_reload_sshd
command: "{{ sshd_binary }} -t"
notify: reload_sshd
- name: reload_sshd - name: reload_sshd
service: service:
name: "{{ sshd_service }}" name: "{{ sshd_service }}"

View file

@ -38,7 +38,8 @@
owner: "{{ sshd_config_owner }}" owner: "{{ sshd_config_owner }}"
group: "{{ sshd_config_group }}" group: "{{ sshd_config_group }}"
mode: "{{ sshd_config_mode }}" mode: "{{ sshd_config_mode }}"
notify: check_and_reload_sshd validate: "{{ sshd_binary }} -t -f %s"
notify: reload_sshd
tags: tags:
- sshd - sshd