]> git.somenet.org - root/pub/somesible.git/blob - roles/base/network/handlers/main.yml
[roles/util] ----- meta ----- No dependencies
[root/pub/somesible.git] / roles / base / network / handlers / main.yml
1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
6 #
7 ---
8 - name: restart networking.service
9   systemd:
10     name: networking.service
11     daemon_reload: yes
12     state: restarted
13   when: restart_network | bool
14   ignore_errors: yes
15
16
17 - name: restart nftables.service
18   systemd:
19     name: nftables.service
20     daemon_reload: yes
21     state: restarted
22   ignore_errors: yes
23
24
25 - name: restart fail2ban.service
26   systemd:
27     name: fail2ban.service
28     daemon_reload: yes
29     state: restarted
30   ignore_errors: yes
31
32
33 - name: restart vnstat.service
34   systemd:
35     name: vnstat.service
36     daemon_reload: yes
37     state: restarted
38   ignore_errors: yes