From ea7821dcab11da8aa3506ff28057a61c21600659 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 2 Feb 2020 10:30:39 -0500 Subject: [PATCH] Explain 2 mkdir lines in Ansible output --- roles/awstats/tasks/install.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/awstats/tasks/install.yml b/roles/awstats/tasks/install.yml index 1af06f575..de191701c 100644 --- a/roles/awstats/tasks/install.yml +++ b/roles/awstats/tasks/install.yml @@ -25,18 +25,18 @@ command: a2enmod cgi when: apache_install | bool -- name: mkdir /var/log/apache2, 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 file: state: directory recurse: yes - path: "{{ apache_log_dir }}" - owner: "{{ apache_user }}" + path: "{{ apache_log_dir }}" # /var/log/apache2 on debuntu + owner: "{{ apache_user }}" # www-data on debuntu group: "{{ apache_user }}" mode: u+rw,g+r,g-w,o-rwx # '0750' turned on too many x bits #force: yes when: apache_install | bool -- name: mkdir {{ awstats_data_dir }} (intermediate summary storage) & /usr/lib/cgi-bin/awstats, recursively chown {{ apache_user }}:{{ apache_user }}, with chmod u+rw,g+r,g-w,o-rwx +- name: Create 2 directories... mkdir {{ awstats_data_dir }} (intermediate summary storage) and /usr/lib/cgi-bin/awstats, recursively chown {{ apache_user }}:{{ apache_user }}, with chmod u+rw,g+r,g-w,o-rwx file: state: directory recurse: yes @@ -52,7 +52,7 @@ - name: Install /etc/{{ apache_conf_dir }}/awstats.conf from template template: 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_install | bool - name: Install /etc/logrotate.d/apache2 from template, to ensure logrotate doesn't make logs unreadable