1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

raspbian no reboot -- needs testing

This commit is contained in:
Jerry Vonau 2020-05-04 07:57:40 -05:00
parent b60d4957a1
commit 1bdd038b41
2 changed files with 16 additions and 5 deletions

View file

@ -10,6 +10,17 @@
# when: iiab_wireless_lan_iface is defined and hostapd_enabled and discovered_wireless_iface != iiab_wan_iface
# when: hostapd_enabled and iiab_wireless_lan_iface is defined and discovered_wireless_iface == iiab_wireless_lan_iface
- name: Stop wpa_supplicant on Raspbian
shell: killall wpa_supplicant
when: is_raspbian
# now pick up denyinterfaces and respawn wpa_supplicant
- name: Restart dhcpcd on Raspbian
systemd:
name: dhcpcd
state: restarted
when: is_raspbian
- name: Restart clone-wifi wpa_supplicant service
systemd:
name: "{{ item }}"

View file

@ -51,13 +51,13 @@
daemon_reload: yes
# now pick up denyinterfaces
- name: Restart dhcpcd
service:
name: dhcpcd
state: restarted
#- name: Restart dhcpcd
# service:
# name: dhcpcd
# state: restarted
- name: Restart the networking service if appropriate
service:
systemd:
name: networking
enabled: yes
state: restarted