1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/network/tasks/main.yml

124 lines
2.2 KiB
YAML
Raw Normal View History

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
- 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:
- 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
# 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
- include: named.yml
tags:
- named
- network
- include: dhcpd.yml
tags:
- dhcpd
- network
- include: squid.yml
tags:
- squid
- network
when: squid_install
2017-05-27 18:09:50 +00:00
- 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
2017-05-27 23:10:45 +00:00
when: is_redhat and not installing
2017-05-27 18:09:50 +00:00
- include: debian.yml
tags:
- network
2017-05-27 23:10:45 +00:00
when: is_debuntu and not is_rpi and not installing
2017-05-27 18:09:50 +00:00
- include: rpi_debian.yml
tags:
- network
2017-05-27 23:10:45 +00:00
when: is_debuntu and is_rpi and not installing
2017-05-27 18:09:50 +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:
- iiab_wan_device
- iiab_lan_device
2017-05-27 18:09:50 +00:00
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