1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/network/tasks/main.yml
2017-10-27 09:33:32 -04:00

129 lines
2.3 KiB
YAML

- include: detected_network.yml
when: not installing
tags:
- network
- network-discover
- 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
- name: Create iiab_domain_name flag
template: src=network/{{ item }}.j2
dest=/etc/sysconfig/{{ item }}
mode=0644
with_items:
- iiab_domain_name
register: domainname
tags:
- network
- domain
##### Start static ip address info for first run #####
#- include: static.yml
# when: 'iiab_wan_iface != "none" and wan_ip != "dhcp"'
##### End static ip address info
- include: hosts.yml
tags:
- network
- include: named.yml
tags:
- named
- network
- include: dhcpd.yml
tags:
- dhcpd
- network
- include: squid.yml
tags:
- squid
- network
when: squid_install
- include: wondershaper.yml
tags:
- wondershaper
- network
- include: iptables.yml
tags:
- iptables
- network
- include: avahi.yml
tags:
- network
- name: Ask systemd to reread the unit files, picks up changes done
shell: systemctl daemon-reload
when: not installing
- include: ifcfg_mods.yml
tags:
- network
when: is_redhat and not installing
- include: debian.yml
tags:
- network
when: is_debuntu and not is_rpi and not installing
- include: rpi_debian.yml
tags:
- network
when: is_debuntu and is_rpi and not installing
- name: Create IIAB network flags
template: src=network/{{ item }}.j2
dest=/etc/sysconfig/{{ item }}
mode=0644
with_items:
- iiab_wan_device
- iiab_lan_device
when: not installing
tags:
- network
- include: computed_services.yml
tags:
- network
- include: enable_services.yml
tags:
- network
- include: restart.yml
when: not installing
tags:
- network
- include: hostapd.yml
when: not installing
tags:
- network