common/handlers/main.yml

25 lines
553 B
YAML
Raw Normal View History

2020-01-14 01:59:13 -05:00
---
2020-01-14 03:41:24 -05:00
- name: common | Restart SSH daemon
systemd:
daemon_reload: true
name: sshd
state: restarted
2020-01-14 04:00:07 -05:00
- name: common | Load iptables rules for IPv4
2020-01-14 05:12:21 -05:00
shell: 'cat {{ common__iptables__conf_ipv4 }} | iptables-restore'
2020-01-14 04:00:07 -05:00
- name: common | Load iptables rules for IPv6
2020-01-14 05:12:21 -05:00
shell: 'cat {{ common__iptables__conf_ipv6 }} | ip6tables-restore'
2020-01-14 05:23:21 -05:00
- name: common | Restart Nginx
systemd:
daemon_reload: true
name: nginx
state: restarted
2020-01-20 13:00:02 -05:00
- name: common | Restart Apache
systemd:
daemon_reload: true
name: apache2
state: restarted