From ef63e6e3561af814caf1668c2f3d4fb701f6f1e4 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 10 Nov 2017 15:33:19 -0500 Subject: [PATCH] AWStats OS clarifs in Ansible output --- roles/awstats/tasks/install.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/roles/awstats/tasks/install.yml b/roles/awstats/tasks/install.yml index 0e10e5c33..06273e9a5 100644 --- a/roles/awstats/tasks/install.yml +++ b/roles/awstats/tasks/install.yml @@ -8,7 +8,7 @@ tags: - download -- name: Install AWStats package +- name: Install AWStats package (debuntu) package: name={{ item }} state=present with_items: @@ -18,7 +18,7 @@ tags: - download -- name: enable cgi execution +- name: enable cgi execution (debuntu) command: a2enmod cgi when: is_debuntu @@ -33,7 +33,7 @@ - "{{ awstats_data_dir }}" - "{{ apache_log_dir }}" -- name: Install the Apache config for AWStats +- name: Install the Apache config for AWStats (debuntu) template: src=apache.conf dest=/etc/{{ apache_config_dir }}/awstats.conf owner=root @@ -41,7 +41,7 @@ mode=0644 when: awstats_enabled and is_debuntu -- name: Install the Apache config for AWStats +- name: Install the Apache config for AWStats (OS's other than debuntu) template: src=apache-awstats.conf dest=/etc/{{ apache_config_dir }}/awstats.conf owner=root @@ -49,7 +49,7 @@ mode=0644 when: awstats_enabled and not is_debuntu -- name: make sure logrotate does not make logs unreadable +- name: make sure logrotate does not make logs unreadable (debuntu) template: src=logrotate.d.apache2 dest=/etc/logrotate.d/apache2 when: is_debuntu @@ -63,13 +63,13 @@ command: mv /etc/awstats/awstats.conf /etc/awstats/awstats.conf.dist when: awstats.stat.islnk is defined and not awstats.stat.islnk -- name: Enable AWStats +- name: Enable AWStats (debuntu) file: src=/etc/apache2/sites-available/awstats.conf path=/etc/apache2/sites-enabled/awstats.conf state=link when: awstats_enabled and is_debuntu -- name: Disable AWStats +- name: Disable AWStats (debuntu) file: path=/etc/apache2/sites-enabled/awstats.conf state=absent when: not awstats_enabled and is_debuntu @@ -88,10 +88,10 @@ state=link when: awstats_enabled -- name: On first enabling of AWStats, summarize httpd logs up to now +- name: On first enabling of AWStats, summarize httpd logs up to now (OS's other than debuntu) shell: /bin/perl /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=schoolserver -update when: awstats_enabled and not is_debuntu -- name: On first enabling of AWStats, summarize httpd logs up to now +- name: On first enabling of AWStats, summarize httpd logs up to now (debuntu) shell: /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -config=schoolserver -update when: awstats_enabled and is_debuntu