scripts/ansible/handlers.yml

58 lines
951 B
YAML

---
- name: Enable weechat service
service:
name: weechat
enabled: yes
- name: Re-export exportfs
command: exportfs -arv
- name: Restart and enable smartd
service:
name: smartd
enabled: yes
state: restarted
- name: Restart chrony service
service:
name: chrony
state: restarted
- name: Restart postfix
service:
name: postfix
state: restarted
- name: Restart sshd service
service:
name: sshd
state: restarted
- name: Restart systemd-logind service
service:
name: systemd-logind
state: restarted
- name: Restart zfs-zed
service:
name: zfs-zed
state: restarted
- name: Restart and enable tor
service:
name: tor
enabled: yes
state: restarted
- name: Restart haproxy
service:
name: haproxy
state: restarted
- name: Load, start, and enable sshtunnel service
systemd:
name: sshtunnel
daemon_reload: yes
enabled: yes
state: started