ansible-sshd/handlers/main.yml

11 lines
207 B
YAML
Raw Normal View History

2014-12-18 23:12:51 +01:00
---
2015-01-13 14:26:52 +01:00
- name: check_and_reload_sshd
2014-12-18 23:12:51 +01:00
command: "{{ sshd_binary }} -t"
2015-01-13 14:26:52 +01:00
notify: reload_sshd
2014-12-18 23:12:51 +01:00
2015-01-13 14:26:52 +01:00
- name: reload_sshd
2014-12-18 23:12:51 +01:00
service:
name: "{{ sshd_service }}"
state: reloaded
2015-01-13 18:42:10 +01:00
when: sshd_allow_reload == True