diff --git a/roles/homepage/tasks/main.yml b/roles/homepage/tasks/main.yml index f88503082..67cc2c64a 100644 --- a/roles/homepage/tasks/main.yml +++ b/roles/homepage/tasks/main.yml @@ -1,4 +1,4 @@ -- name: Create home directory +- name: Create dir {{ doc_root }}/home file: path: "{{ doc_root }}/home" owner: "{{ apache_user }}" @@ -6,14 +6,14 @@ mode: 0755 state: directory -- name: Install admin homepage into apache2 +- name: Install /etc/{{ apache_config_dir }}/iiab-homepage.conf from template, for http://box redirect to http://box/home/ template: src: iiab-homepage.conf dest: "/etc/{{ apache_config_dir }}/iiab-homepage.conf" -- name: Enable the home page +- name: Symlink /etc/apache2/sites-enabled/iiab-homepage.conf to /etc/{{ apache_config_dir }}/iiab-homepage.conf (debuntu) file: src: "/etc/{{ apache_config_dir }}/iiab-homepage.conf" - dest: /etc/apache2/sites-enabled/iiab-homepage.conf + path: /etc/apache2/sites-enabled/iiab-homepage.conf state: link when: is_debuntu