1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

use hard coded iiab-servar.lan as a link between client redirects and our server

This commit is contained in:
George Hunt 2018-10-02 02:30:52 +00:00
parent d90b6becb9
commit b11b46ccd0
5 changed files with 5 additions and 5 deletions

View file

@ -10,4 +10,4 @@ OS={{ ansible_local.local_facts.os }}
OS_VER={{ ansible_local.local_facts.os_ver }}
WWWROOT={{ doc_root }}
STAGE=1
FQDN={{ iiab-fqdn }}
FQDN={{ iiab_fqdn }}

View file

@ -48,7 +48,7 @@
<br><br>
<br><br>
<br><br>
<a class="button" href="http://server.lan/home">{{ btn1 }}</a>
<a class="button" href="http://iiab-server.lan/home">{{ btn1 }}</a>
</div>
</body>
</html>

View file

@ -69,7 +69,7 @@
<script>
var w = window.innerWidth;
function homeclick(){
window.open("http://server.lan/home","_system");
window.open("http://iiab-server.lan/home","_system");
$.ajax("/home_selected");
}

View file

@ -8,14 +8,14 @@
- name: Configure fqdn in /etc/hosts with LAN
lineinfile: dest=/etc/hosts
regexp='^172\.18\.96\.1'
line='172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box'
line='172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
state=present
when: iiab_lan_iface != "none" and not installing
- name: Configure fqdn in /etc/hosts appliance mode
lineinfile: dest=/etc/hosts
regexp='^127\.0\.0\.1'
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box '
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box iiab-server.lan'
owner=root
group=root
mode=0644