roles/common/*/main.yml: Rebuild /etc/ssh/sshd_config on change.
[distorted-ansible] / roles / common / handlers / main.yml
1 ### -*-yaml-*-
2 ###
3 ### Handlers, mostly for kicking services.
4
5 ---
6
7 ###--------------------------------------------------------------------------
8 ### Rebuliding remote configuration files.
9
10 - name: make in /etc/ssh/
11 command: make chdir=/etc/ssh/
12
13 - name: make in /root/.ssh/
14 command: make chdir=/root/.ssh/
15
16 ###--------------------------------------------------------------------------
17 ### Restarting services in obvious ways.
18
19 - name: restart ntpd
20 service: name=ntp state=restarted
21
22 - name: restart ssh
23 service: name=ssh state=restarted
24
25 ###----- That's all, folks --------------------------------------------------