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

lose rpi_debian - rebased -- dropped file

This commit is contained in:
Jerry Vonau 2017-09-15 11:56:57 -05:00
parent faad0d9fe6
commit 41c697233c
5 changed files with 30 additions and 14 deletions

View file

@ -68,3 +68,10 @@
- name: restart the networking service
service: name=networking state=restarted
when: interface.changed
- name: restart hostapd when wifi is present
service: name=hostapd state=started
when: iiab_wireless_lan_iface != "none" and hostapd_enabled and iiab_network_mode != "Appliance"
- name: dhcp_server may be affected - starting - user choice
service: name={{ dhcp_service2 }} state=started

View file

@ -110,5 +110,9 @@
with_items:
- "{{ lan_list_result.stdout_lines }}"
- name: restart hostapd when wifi is present
service: name=hostapd state=started
when: iiab_wireless_lan_iface != "none" and hostapd_enabled and iiab_network_mode != "Appliance"
- name: dhcp_server may be affected - starting - user choice
service: name={{ dhcp_service2 }} state=started

View file

@ -41,14 +41,14 @@
- name: Run iptables
command: /usr/bin/iiab-gen-iptables
- name: Checking if slave is active waiting 10 seconds
shell: "sleep {{ hostapd_wait }} | brctl show | grep {{ iiab_wireless_lan_iface }}"
- name: Checking if wifi slave is active waiting {{ hostapd_wait }} seconds
shell: "sleep {{ hostapd_wait }} | brctl show br0 | grep {{ iiab_wireless_lan_iface }}"
ignore_errors: True
changed_when: False
register: wifi_slave
when: iiab_lan_iface == "br0" and iiab_wireless_lan_iface != "none"
- name: Restart hostapd if slave is inactive
- name: Restart hostapd if wifi slave is inactive
service: name=hostapd.service
state=restarted
when: iiab_lan_iface == "br0" and item|trim == ""

View file

@ -67,11 +67,11 @@
- include: dansguardian.yml
when: dansguardian_install
- name: Stop Squid
service: name={{ proxy }}
state=stopped
ignore_errors: yes
when: not installing
#- name: Stop Squid
# service: name={{ proxy }}
# state=stopped
# ignore_errors: yes
# when: not installing
- name: Add Squid to service list
ini_file: dest='{{ service_filelist }}'