2017-06-02 17:55:02 +00:00
|
|
|
- name: Create home directory
|
2018-07-18 21:49:09 +00:00
|
|
|
file:
|
|
|
|
path: "{{ doc_root }}/home"
|
|
|
|
owner: "{{ apache_user }}"
|
|
|
|
group: "{{ apache_user }}"
|
|
|
|
mode: 0755
|
|
|
|
state: directory
|
2017-06-02 17:55:02 +00:00
|
|
|
|
2017-10-27 02:04:54 +00:00
|
|
|
- name: Install admin homepage into apache2
|
2018-07-18 21:49:09 +00:00
|
|
|
template:
|
|
|
|
src: iiab-homepage.conf
|
|
|
|
dest: "/etc/{{ apache_config_dir }}/iiab-homepage.conf"
|
2017-06-02 17:55:02 +00:00
|
|
|
|
|
|
|
- name: Enable the home page
|
2018-07-18 21:49:09 +00:00
|
|
|
file:
|
|
|
|
src: "/etc/{{ apache_config_dir }}/iiab-homepage.conf"
|
|
|
|
dest: /etc/apache2/sites-enabled/iiab-homepage.conf
|
|
|
|
state: link
|
2017-06-02 17:55:02 +00:00
|
|
|
when: is_debuntu
|