mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
correct for ubuntu
This commit is contained in:
parent
810950ceaa
commit
3da96de4e9
3 changed files with 12 additions and 12 deletions
|
@ -19,7 +19,7 @@
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
when: is_ubuntu
|
when: is_ubuntu
|
||||||
+
|
|
||||||
- name: Install httpd required packages
|
- name: Install httpd required packages
|
||||||
package: name={{ item }}
|
package: name={{ item }}
|
||||||
state=present
|
state=present
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
file: path=/etc/apache2/sites-enabled/000-default.conf
|
file: path=/etc/apache2/sites-enabled/000-default.conf
|
||||||
src=/etc/apache2/sites-available/000-default.conf
|
src=/etc/apache2/sites-available/000-default.conf
|
||||||
state=absent
|
state=absent
|
||||||
+ when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
- name: Create httpd config files
|
- name: Create httpd config files
|
||||||
template: backup=yes
|
template: backup=yes
|
||||||
|
|
|
@ -28,11 +28,6 @@
|
||||||
package: name=dhcpcd-dbus
|
package: name=dhcpcd-dbus
|
||||||
state=present
|
state=present
|
||||||
|
|
||||||
- name: start up the dhcpcd service
|
|
||||||
service: name=dhcpcd
|
|
||||||
enabled=True
|
|
||||||
state=started
|
|
||||||
|
|
||||||
- name: for upgrades from earlier 6.2, remove br0 file
|
- name: for upgrades from earlier 6.2, remove br0 file
|
||||||
file: path=/etc/network/interfaces.d/br0
|
file: path=/etc/network/interfaces.d/br0
|
||||||
state=absent
|
state=absent
|
||||||
|
@ -47,6 +42,11 @@
|
||||||
src=network/interfaces.j2
|
src=network/interfaces.j2
|
||||||
register: interface
|
register: interface
|
||||||
|
|
||||||
|
- name: start up the dhcpcd service
|
||||||
|
service: name=dhcpcd
|
||||||
|
enabled=True
|
||||||
|
state=started
|
||||||
|
|
||||||
- name: If this was a change, things need to shift
|
- name: If this was a change, things need to shift
|
||||||
service: name=hostapd state=stopped
|
service: name=hostapd state=stopped
|
||||||
when: interface.changed
|
when: interface.changed
|
||||||
|
|
|
@ -7,7 +7,7 @@ source /etc/network/interfaces.d/*
|
||||||
auto lo
|
auto lo
|
||||||
iface lo inet loopback
|
iface lo inet loopback
|
||||||
|
|
||||||
# gui_desired_network_role is {{ gui_desired_network_role }}
|
# xsce_network_mode is {{ gui_desired_network_role }}
|
||||||
{% if discovered_wireless_iface != 'none' %}
|
{% if discovered_wireless_iface != 'none' %}
|
||||||
# we always want the wireless to be configured (and under bridge) if it exists
|
# we always want the wireless to be configured (and under bridge) if it exists
|
||||||
auto {{ discovered_wireless_iface }}
|
auto {{ discovered_wireless_iface }}
|
||||||
|
@ -16,11 +16,11 @@ iface {{discovered_wireless_iface }} inet manual
|
||||||
pre-down ifconfig $IFACE down
|
pre-down ifconfig $IFACE down
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if gui_desired_network_role == "Appliance" %}
|
{% if xsce_network_mode == "Appliance" %}
|
||||||
################# APPLIANCE #########################
|
################# APPLIANCE #########################
|
||||||
auto {{ discovered_wan_iface }}
|
auto {{ discovered_wan_iface }}
|
||||||
{% if gui_static_wan == false %}
|
{% if gui_static_wan == false %}
|
||||||
iface {{ discovered_wan_iface }} inet dhcp
|
iface {{ discovered_wan_iface }} inet manual
|
||||||
{% else %} # gui_static_wan_ip is set
|
{% else %} # gui_static_wan_ip is set
|
||||||
iface {{ discovered_wan_iface }} inet static
|
iface {{ discovered_wan_iface }} inet static
|
||||||
address {{ gui_static_wan_ip }}
|
address {{ gui_static_wan_ip }}
|
||||||
|
@ -29,7 +29,7 @@ iface {{ discovered_wan_iface }} inet static
|
||||||
dns-nameservers {{ gui_static_wan_nameserver }}
|
dns-nameservers {{ gui_static_wan_nameserver }}
|
||||||
dns-search {{ xsce_domain }}
|
dns-search {{ xsce_domain }}
|
||||||
{% endif %} {# end of static_wan #}
|
{% endif %} {# end of static_wan #}
|
||||||
{% elif gui_desired_network_role == "Gateway" %}
|
{% elif xsce_network_mode == "Gateway" %}
|
||||||
################# GATEWAY #########################
|
################# GATEWAY #########################
|
||||||
auto br0
|
auto br0
|
||||||
iface br0 inet static
|
iface br0 inet static
|
||||||
|
@ -50,7 +50,7 @@ iface {{ discovered_wan_iface }} inet static
|
||||||
dns-search {{ xsce_domain }}
|
dns-search {{ xsce_domain }}
|
||||||
post-up systemctl restart dhcpd && systemctl restart hostapd
|
post-up systemctl restart dhcpd && systemctl restart hostapd
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %} {# end of gui_desired_network_role == Gateway #}
|
{% else %} {# end of xsce_network_mode == Gateway #}
|
||||||
|
|
||||||
################# LANCONTROLLER ###################
|
################# LANCONTROLLER ###################
|
||||||
auto br0
|
auto br0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue