2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: detected_network.yml
|
2017-09-23 07:03:58 +00:00
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- network-discover
|
|
|
|
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: computed_network.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- network-discover
|
|
|
|
|
|
|
|
##### Start static ip address info for first run #####
|
2017-10-31 03:55:24 +00:00
|
|
|
#- include_tasks: static.yml
|
2017-06-09 23:25:56 +00:00
|
|
|
# when: 'iiab_wan_iface != "none" and wan_ip != "dhcp"'
|
2017-05-27 18:09:50 +00:00
|
|
|
##### End static ip address info
|
|
|
|
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: hosts.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- network
|
2017-10-08 19:42:55 +00:00
|
|
|
- hostname
|
2017-09-24 19:27:06 +00:00
|
|
|
- domain
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: iptables.yml
|
2017-09-09 21:12:05 +00:00
|
|
|
tags:
|
|
|
|
- network
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-01 14:15:59 +00:00
|
|
|
#### start services
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: avahi.yml
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
2017-10-31 21:57:39 +00:00
|
|
|
- include_tasks: hostapd.yml
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- AP
|
|
|
|
|
|
|
|
- include_tasks: computed_services.yml
|
|
|
|
tags:
|
|
|
|
- network
|
2017-11-01 14:15:59 +00:00
|
|
|
- named
|
|
|
|
- dhcpd
|
|
|
|
- dnsmasq
|
|
|
|
- squid
|
|
|
|
|
|
|
|
- include_tasks: enable_services.yml
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- named
|
|
|
|
- dhcpd
|
|
|
|
- dnsmasq
|
|
|
|
- squid
|
|
|
|
|
|
|
|
#### end services
|
|
|
|
#### Start network layout
|
2017-10-31 21:57:39 +00:00
|
|
|
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: ifcfg_mods.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- network
|
2017-10-31 21:18:16 +00:00
|
|
|
when: is_redhat and not installing
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: debian.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- network
|
2017-10-31 03:55:24 +00:00
|
|
|
when: is_debuntu and not is_rpi and not installing
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: rpi_debian.yml
|
2017-09-09 21:12:05 +00:00
|
|
|
tags:
|
|
|
|
- network
|
2017-10-31 03:55:24 +00:00
|
|
|
when: is_debuntu and is_rpi and not installing
|
2017-09-09 21:12:05 +00:00
|
|
|
|
2017-10-15 20:08:08 +00:00
|
|
|
- name: Record iiab_wan_device
|
|
|
|
lineinfile: dest=/etc/iiab/iiab.env
|
|
|
|
regexp='^IIAB_WAN_DEVICE=*'
|
|
|
|
line='IIAB_WAN_DEVICE="{{ iiab_wan_iface }}"'
|
|
|
|
state=present
|
2017-05-27 18:09:50 +00:00
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
2017-10-15 20:08:08 +00:00
|
|
|
- name: Record iiab_lan_device
|
|
|
|
lineinfile: dest=/etc/iiab/iiab.env
|
|
|
|
regexp='^IIAB_LAN_DEVICE=*'
|
|
|
|
line='IIAB_LAN_DEVICE="{{ iiab_lan_iface }}"'
|
|
|
|
state=present
|
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
|
|
|
#### end network layout
|
2017-10-31 03:55:24 +00:00
|
|
|
- include_tasks: restart.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
2017-09-16 04:43:15 +00:00
|
|
|
- named
|
|
|
|
- dhcpd
|
|
|
|
- dnsmasq
|
|
|
|
- squid
|