1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/homepage/tasks/main.yml

20 lines
690 B
YAML
Raw Normal View History

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
when: is_debuntu | bool