2018-11-04 03:55:56 +00:00
|
|
|
- name: Create dir {{ doc_root }}/home
|
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
|
|
|
|
2018-11-04 03:55:56 +00:00
|
|
|
- name: Install /etc/{{ apache_config_dir }}/iiab-homepage.conf from template, for http://box redirect to http://box/home/
|
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
|
|
|
|
2018-11-04 03:55:56 +00:00
|
|
|
- name: Symlink /etc/apache2/sites-enabled/iiab-homepage.conf to /etc/{{ apache_config_dir }}/iiab-homepage.conf (debuntu)
|
2018-07-18 21:49:09 +00:00
|
|
|
file:
|
|
|
|
src: "/etc/{{ apache_config_dir }}/iiab-homepage.conf"
|
2018-11-04 03:55:56 +00:00
|
|
|
path: /etc/apache2/sites-enabled/iiab-homepage.conf
|
2018-07-18 21:49:09 +00:00
|
|
|
state: link
|
2019-05-24 22:33:10 +00:00
|
|
|
when: is_debuntu | bool
|