common/handlers/main.yml

25 lines
553 B
YAML
Raw Normal View History

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