1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00
This commit is contained in:
Jerry Vonau 2019-11-19 11:25:51 -06:00
parent 7282498ccc
commit 90ae299665
4 changed files with 58 additions and 32 deletions

View file

@ -22,3 +22,6 @@
- name: Enable Sugarizer for Apache
command: a2ensite sugarizer.conf
- name: Enable AWStats for Apache
command: a2ensite awstats.conf

View file

@ -1,3 +1,26 @@
- name: Remove symlink /etc/apache2/sites-enabled/awstats.conf
file:
path: /etc/apache2/sites-enabled/awstats.conf
state: absent
- name: Install nginx support for awstats if awstats_enabled
copy:
backup: no
src: "{{ item.src }}"
dest: "{{ item.dest }}"
mode: "{{ item.mode }}"
owner: root
group: root
with_items:
- { src: 'roles/awstats/templates/awstats-nginx.conf', dest: '/etc/nginx/conf.d/kiwix-nginx.conf' , mode: '0644' }
when: awstats_enabled
- name: Remove nginx support for kiwix
file:
path: /etc/nginx/conf.d/awstats-nginx.conf
state: absent
when: not awstats_enabled
- name: Remove symlink /etc/apache2/sites-enabled/kiwix.conf
file:
path: /etc/apache2/sites-enabled/kiwix.conf