mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Try roles/www_back_end in Stage 3 & roles/www_front_end in Stage 4
This commit is contained in:
parent
c2bda06545
commit
efd62be606
57 changed files with 139 additions and 66 deletions
17
roles/httpd/tasks/homepage.yml
Normal file
17
roles/httpd/tasks/homepage.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Both invoked in 4-SERVER-OPTIONS, by roles/www_front_end/tasks/main.yml:
|
||||
#
|
||||
# httpd/tasks/homepage.yml
|
||||
# nginx/tasks/homepage.yml
|
||||
|
||||
- name: Install /etc/{{ apache_conf_dir }}/iiab-homepage.conf from httpd/templates, so Apache redirects http://box to http://box{{ iiab_home_url }} # /home
|
||||
template:
|
||||
src: roles/httpd/templates/iiab-homepage.conf
|
||||
dest: "/etc/{{ apache_conf_dir }}/iiab-homepage.conf" # apache2/sites-available (on debuntu)
|
||||
|
||||
- name: "IN CASE NGINX IS DISABLED: Enable IIAB pages via Apache (e.g. on port 80) by running 'a2ensite iiab-homepage.conf'"
|
||||
command: a2ensite iiab-homepage.conf
|
||||
#when: apache_enabled | bool
|
||||
|
||||
# - name: Disable IIAB pages via Apache (e.g. on port 80) by running 'a2dissite iiab-homepage.conf', if not apache_enabled"
|
||||
# command: a2dissite iiab-homepage.conf
|
||||
# when: not apache_enabled
|
||||
|
|
@ -156,26 +156,9 @@
|
|||
# command: a2dissite 010-iiab.conf
|
||||
# when: not apache_enabled
|
||||
|
||||
# MOVED FROM roles/homepage/tasks/main.yml (as NGINX-only IIAB's won't need it)
|
||||
# and 'mkdir /library/www/html/home' is now done by web_support/tasks/main.yml
|
||||
# for Admin Console which hard-codes that as a requirement, as of 2020-02-12.
|
||||
#
|
||||
# './runrole --reinstall apache' is a decent solution today, for folks needing
|
||||
# changes, but to make sure such things work in the field/offline/etc: soft-
|
||||
# coding of iiab_home_url should probably be taken more seriously thruout IIAB!
|
||||
#
|
||||
- name: Install /etc/{{ apache_conf_dir }}/iiab-homepage.conf from template, for http://box redirect to http://box/home/
|
||||
template:
|
||||
src: iiab-homepage.conf
|
||||
dest: "/etc/{{ apache_conf_dir }}/iiab-homepage.conf"
|
||||
|
||||
- name: "IN CASE NGINX IS DISABLED: Enable iiab-homepage.conf via Apache (e.g. on port 80) by running 'a2ensite iiab-homepage.conf'"
|
||||
command: a2ensite iiab-homepage.conf
|
||||
#when: apache_enabled | bool
|
||||
|
||||
# - name: Disable IIAB pages via Apache (e.g. on port 80) by running 'a2dissite iiab-homepage.conf', if not apache_enabled"
|
||||
# command: a2dissite iiab-homepage.conf
|
||||
# when: not apache_enabled
|
||||
- debug:
|
||||
msg: roles/httpd/tasks/homepage.yml will run LATER (invoked by roles/www_front_end/tasks/main.yml) SO THAT APACHE CAN REDIRECT http://box TO http://box{{ iiab_home_url }} (based on var iiab_home_url)
|
||||
# - include_tasks: roles/httpd/tasks/homepage.yml
|
||||
|
||||
# - name: Enable & Stop '{{ apache_service }}' systemd service
|
||||
# systemd:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue