Initial commit, squashed
This commit is contained in:
commit
158e8740b8
83 changed files with 2718 additions and 0 deletions
41
roles/firewall/handlers/main.yml
Normal file
41
roles/firewall/handlers/main.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
- name: enable interfaces
|
||||
command: ifup --auto
|
||||
when: "'handler' not in ansible_skip_tags"
|
||||
|
||||
- name: mkinitfs
|
||||
command: mkinitfs
|
||||
when: "'handler' not in ansible_skip_tags"
|
||||
|
||||
- name: reload frr
|
||||
command: /usr/lib/frr/frr-reload.py --reload /etc/frr/frr.conf
|
||||
when: "'handler' not in ansible_skip_tags"
|
||||
|
||||
- name: reload nftables
|
||||
service:
|
||||
name: nftables
|
||||
state: reloaded
|
||||
when: "'handler' not in ansible_skip_tags"
|
||||
|
||||
- name: restart conntrackd
|
||||
service:
|
||||
name: conntrackd
|
||||
state: restarted
|
||||
when: "'handler' not in ansible_skip_tags"
|
||||
|
||||
- name: restart frr
|
||||
service:
|
||||
name: frr
|
||||
state: restarted
|
||||
when: "'handler' not in ansible_skip_tags"
|
||||
|
||||
- name: reload sshd.friwall
|
||||
service:
|
||||
name: sshd.friwall
|
||||
state: reloaded
|
||||
when: "'handler' not in ansible_skip_tags"
|
||||
|
||||
- name: restart sshd.friwall
|
||||
service:
|
||||
name: sshd.friwall
|
||||
state: restarted
|
||||
when: "'handler' not in ansible_skip_tags"
|
Loading…
Add table
Add a link
Reference in a new issue