mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
move creation of home page to http
This commit is contained in:
parent
3e6108ff2f
commit
62b69149b9
3 changed files with 26 additions and 0 deletions
16
roles/httpd/tasks/home-page.yml
Normal file
16
roles/httpd/tasks/home-page.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
- name: Create home directory
|
||||||
|
file: path={{ doc_root }}/home
|
||||||
|
mode=0755
|
||||||
|
owner={{ apache_data }}
|
||||||
|
group={{ apache_data }}
|
||||||
|
state=directory
|
||||||
|
|
||||||
|
- name: Install admin home page into apache2
|
||||||
|
template: src=console/xsce-home-page.conf
|
||||||
|
dest=/etc/{{ apache_config_dir }}/xsce-home-page.conf
|
||||||
|
|
||||||
|
- name: Enable the home page
|
||||||
|
file: src=/etc/{{ apache_config_dir }}/xsce-home-page.conf
|
||||||
|
dest=/etc/apache2/sites-enabled/xsce-home-page.conf
|
||||||
|
state=link
|
||||||
|
when: is_debuntu
|
|
@ -138,3 +138,4 @@
|
||||||
tags:
|
tags:
|
||||||
- base
|
- base
|
||||||
|
|
||||||
|
- include: home-page.yml
|
||||||
|
|
9
roles/httpd/templates/xsce-home-page.conf
Normal file
9
roles/httpd/templates/xsce-home-page.conf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# XSCE Home Page
|
||||||
|
|
||||||
|
# Redirect to home page on School Server
|
||||||
|
# Default is xs-portal
|
||||||
|
|
||||||
|
# RedirectMatch of root to home page
|
||||||
|
# See the note in default_vars.yml
|
||||||
|
|
||||||
|
RedirectMatch ^/$ {{ xsce_home_url }}
|
Loading…
Add table
Add a link
Reference in a new issue