init
This commit is contained in:
28
roles/configure/handlers/main.yml
Normal file
28
roles/configure/handlers/main.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: Reload the sysctl configuration
|
||||
# We have to use the command here because (to date) the
|
||||
# ansible.posix.sysctl module does not allow to force a reload
|
||||
ansible.builtin.command:
|
||||
cmd: sysctl --system
|
||||
changed_when: false
|
||||
when: disable_ipv6_reload_sysctl_if_changed
|
||||
|
||||
- name: Restart NetworkManager
|
||||
service:
|
||||
name: NetworkManager
|
||||
state: restarted
|
||||
|
||||
- name: Restart hostapd
|
||||
service:
|
||||
name: hostapd
|
||||
state: restarted
|
||||
|
||||
- name: Restart dhcpd
|
||||
service:
|
||||
name: dhcpd
|
||||
state: restarted
|
||||
|
||||
- name: Restart systemd-networkd
|
||||
service:
|
||||
name: systemd-networkd
|
||||
state: restarted
|
||||
Reference in New Issue
Block a user