mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
rename home-page
This commit is contained in:
parent
8235710e63
commit
ef30a8c3e3
2 changed files with 0 additions and 0 deletions
16
roles/homepage/tasks/main.yml
Normal file
16
roles/homepage/tasks/main.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- name: Create home directory
|
||||
file: path={{ doc_root }}/home
|
||||
mode=0755
|
||||
owner={{ apache_user }}
|
||||
group={{ apache_user }}
|
||||
state=directory
|
||||
|
||||
- name: Install admin homepage into apache2
|
||||
template: src=iiab-homepage.conf
|
||||
dest=/etc/{{ apache_config_dir }}/iiab-homepage.conf
|
||||
|
||||
- name: Enable the home page
|
||||
file: src=/etc/{{ apache_config_dir }}/iiab-homepage.conf
|
||||
dest=/etc/apache2/sites-enabled/iiab-homepage.conf
|
||||
state=link
|
||||
when: is_debuntu
|
||||
9
roles/homepage/templates/iiab-home-page.conf
Normal file
9
roles/homepage/templates/iiab-home-page.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# IIAB Home Page
|
||||
|
||||
# Redirect to home page on School Server
|
||||
# Default [was] xs-portal [and is now generally] home
|
||||
|
||||
# RedirectMatch of root to homepage
|
||||
# See the note in default_vars.yml
|
||||
|
||||
RedirectMatch ^/$ {{ iiab_home_url }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue