mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
awstats/tasks/install.yml: Highlight 5 legacy/Apache stanzas
This commit is contained in:
parent
5ca2179b97
commit
30d1c5ff85
1 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@
|
|||
name: awstats
|
||||
state: present
|
||||
|
||||
- name: 'Install package: pwauth'
|
||||
- name: 'Install package: pwauth (when: apache_installed is defined)'
|
||||
package:
|
||||
name:
|
||||
- pwauth # Auto-installs apache2-bin and libapache2-mod-authnz-external
|
||||
|
@ -19,11 +19,11 @@
|
|||
state: present
|
||||
when: apache_installed is defined
|
||||
|
||||
- name: Run 'a2enmod cgi' to enable cgi execution via Apache
|
||||
- name: "Run 'a2enmod cgi' to enable cgi execution via Apache (when: apache_installed is defined)"
|
||||
command: a2enmod cgi
|
||||
when: apache_installed is defined
|
||||
|
||||
- name: Create directory... mkdir {{ apache_log_dir }}, recursively chown {{ apache_user }}:{{ apache_user }}, with chmod u+rw,g+r,g-w,o-rwx
|
||||
- name: 'Create directory... mkdir {{ apache_log_dir }}, recursively chown {{ apache_user }}:{{ apache_user }}, with chmod u+rw,g+r,g-w,o-rwx (when: apache_installed is defined)'
|
||||
file:
|
||||
state: directory
|
||||
recurse: yes
|
||||
|
@ -47,13 +47,13 @@
|
|||
- "{{ awstats_data_dir }}" # /library/awstats
|
||||
- /usr/lib/cgi-bin/awstats # create backward compatible path for awstats
|
||||
|
||||
- name: Install /etc/{{ apache_conf_dir }}/awstats.conf from template
|
||||
- name: 'Install /etc/{{ apache_conf_dir }}/awstats.conf from template (when: apache_installed is defined)'
|
||||
template:
|
||||
src: apache-awstats.conf
|
||||
dest: "/etc/{{ apache_conf_dir }}/awstats.conf" # apache2/sites-available on debuntu
|
||||
when: apache_installed is defined
|
||||
|
||||
- name: Install /etc/logrotate.d/apache2 from template, to ensure logrotate doesn't make logs unreadable
|
||||
- name: 'Install /etc/logrotate.d/apache2 from template, to ensure logrotate doesn't make logs unreadable (when: apache_installed is defined)'
|
||||
template:
|
||||
src: logrotate.d.apache2
|
||||
dest: /etc/logrotate.d/apache2
|
||||
|
|
Loading…
Reference in a new issue