2017-09-23 07:03:58 +00:00
|
|
|
- include: detected_network.yml
|
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- network-discover
|
|
|
|
|
2017-05-27 18:09:50 +00:00
|
|
|
- include: computed_network.yml
|
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- network-discover
|
|
|
|
|
|
|
|
- name: Set hostname
|
|
|
|
template: dest=/etc/hostname
|
|
|
|
src=network/hostname.j2
|
|
|
|
owner=root
|
|
|
|
mode=0644
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- domain
|
|
|
|
|
|
|
|
- name: Configure /etc/sysconfig/network
|
|
|
|
template: src=network/sysconfig.network.j2
|
|
|
|
dest=/etc/sysconfig/network
|
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode=0644
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- domain
|
|
|
|
|
2017-06-28 02:53:13 +00:00
|
|
|
- name: Create iiab_domain_name flag
|
2017-05-27 18:09:50 +00:00
|
|
|
template: src=network/{{ item }}.j2
|
|
|
|
dest=/etc/sysconfig/{{ item }}
|
|
|
|
mode=0644
|
|
|
|
with_items:
|
2017-06-28 02:53:13 +00:00
|
|
|
- iiab_domain_name
|
2017-05-27 18:09:50 +00:00
|
|
|
register: domainname
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- domain
|
|
|
|
|
|
|
|
##### Start static ip address info for first run #####
|
|
|
|
#- include: 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
|
|
|
|
|
|
|
|
- include: hosts.yml
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
2017-09-09 21:12:05 +00:00
|
|
|
##### end hostname setup
|
|
|
|
##### start install portion
|
|
|
|
# only needs to be done once
|
2017-09-24 18:49:38 +00:00
|
|
|
- include: installing.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- network
|
2017-09-24 18:49:38 +00:00
|
|
|
- named
|
2017-05-27 18:09:50 +00:00
|
|
|
- dhcpd
|
2017-09-13 11:07:25 +00:00
|
|
|
- dnsmasq
|
2017-05-27 18:09:50 +00:00
|
|
|
- squid
|
|
|
|
|
|
|
|
- include: avahi.yml
|
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
2017-09-09 21:12:05 +00:00
|
|
|
#### end install portion
|
|
|
|
#### start network layout
|
|
|
|
# setting installing would skip configuring network
|
|
|
|
# but would configure but not start services
|
|
|
|
- include: computed_network.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
when: not installing
|
2017-09-09 21:12:05 +00:00
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
- network-discover
|
|
|
|
|
2017-09-13 11:07:25 +00:00
|
|
|
- include: computed_services.yml
|
|
|
|
tags:
|
|
|
|
- network
|
2017-09-16 04:43:15 +00:00
|
|
|
- named
|
|
|
|
- dhcpd
|
|
|
|
- dnsmasq
|
|
|
|
- squid
|
2017-09-13 11:07:25 +00:00
|
|
|
|
2017-09-09 21:12:05 +00:00
|
|
|
# templates needed from above install section live here
|
|
|
|
- include: enable_services.yml
|
|
|
|
tags:
|
|
|
|
- network
|
2017-09-16 04:43:15 +00:00
|
|
|
- named
|
|
|
|
- dhcpd
|
|
|
|
- dnsmasq
|
|
|
|
- squid
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-09-13 14:30:59 +00:00
|
|
|
- include: hostapd.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
2017-09-13 14:30:59 +00:00
|
|
|
- include: ifcfg_mods.yml
|
|
|
|
when: not is_debuntu and not installing
|
2017-05-27 18:09:50 +00:00
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
2017-09-13 14:30:59 +00:00
|
|
|
- include: debian.yml
|
|
|
|
when: is_debuntu and not installing
|
2017-09-09 21:12:05 +00:00
|
|
|
tags:
|
|
|
|
- network
|
|
|
|
|
2017-10-27 13:33:32 +00:00
|
|
|
- name: Create IIAB network flags
|
2017-05-27 18:09:50 +00:00
|
|
|
template: src=network/{{ item }}.j2
|
|
|
|
dest=/etc/sysconfig/{{ item }}
|
|
|
|
mode=0644
|
|
|
|
with_items:
|
2017-06-28 02:53:13 +00:00
|
|
|
- iiab_wan_device
|
|
|
|
- iiab_lan_device
|
2017-05-27 18:09:50 +00:00
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
2017-09-09 21:12:05 +00:00
|
|
|
#### end network layout
|
|
|
|
#### start services
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
- include: restart.yml
|
|
|
|
when: not installing
|
|
|
|
tags:
|
|
|
|
- network
|
2017-09-16 04:43:15 +00:00
|
|
|
- named
|
|
|
|
- dhcpd
|
|
|
|
- dnsmasq
|
|
|
|
- squid
|
2017-09-09 21:12:05 +00:00
|
|
|
#### end services
|