1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

awstats/tasks/install.yml: Highlight 5 legacy/Apache stanzas

This commit is contained in:
A Holt 2021-05-21 10:57:40 -04:00 committed by GitHub
parent 5ca2179b97
commit 30d1c5ff85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@
name: awstats name: awstats
state: present state: present
- name: 'Install package: pwauth' - name: 'Install package: pwauth (when: apache_installed is defined)'
package: package:
name: name:
- pwauth # Auto-installs apache2-bin and libapache2-mod-authnz-external - pwauth # Auto-installs apache2-bin and libapache2-mod-authnz-external
@ -19,11 +19,11 @@
state: present state: present
when: apache_installed is defined 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 command: a2enmod cgi
when: apache_installed is defined 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: file:
state: directory state: directory
recurse: yes recurse: yes
@ -47,13 +47,13 @@
- "{{ awstats_data_dir }}" # /library/awstats - "{{ awstats_data_dir }}" # /library/awstats
- /usr/lib/cgi-bin/awstats # create backward compatible path for 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: template:
src: apache-awstats.conf src: apache-awstats.conf
dest: "/etc/{{ apache_conf_dir }}/awstats.conf" # apache2/sites-available on debuntu dest: "/etc/{{ apache_conf_dir }}/awstats.conf" # apache2/sites-available on debuntu
when: apache_installed is defined 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: template:
src: logrotate.d.apache2 src: logrotate.d.apache2
dest: /etc/logrotate.d/apache2 dest: /etc/logrotate.d/apache2