1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

restart.yml - wifi bridge slave touchup

This commit is contained in:
Jerry Vonau 2017-11-06 17:14:33 -06:00
parent 7ac839a300
commit ccdb5cd2fb

View file

@ -48,15 +48,15 @@
- name: Run iptables
command: /usr/bin/iiab-gen-iptables
- name: Checking if wifi slave is active waiting {{ hostapd_wait }} seconds
shell: brctl show br0 | grep {{ iiab_wireless_lan_iface }}
- name: Checking if wifi slave is active
shell: brctl show br0 | grep {{ iiab_wireless_lan_iface }} | wc -l
when: iiab_wireless_lan_iface is defined and iiab_lan_iface == "br0" and hostapd_enabled
register: wifi_slave
- name: Restart hostapd if wifi slave is inactive
service: name=hostapd.service
state=restarted
when: iiab_wireless_lan_iface is defined and iiab_lan_iface == "br0" and hostapd_enabled
when: wifi_slave.stdout is defined and hostapd_enabled and wifi_slave.stdout == 0
- name: dhcp_server may be affected - starting - user choice
service: name={{ dhcp_service2 }}