mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
awstats
This commit is contained in:
parent
7282498ccc
commit
90ae299665
4 changed files with 58 additions and 32 deletions
|
@ -22,3 +22,6 @@
|
|||
- name: Enable Sugarizer for Apache
|
||||
command: a2ensite sugarizer.conf
|
||||
|
||||
- name: Enable AWStats for Apache
|
||||
command: a2ensite awstats.conf
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue