1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Explain 2 mkdir lines in Ansible output

This commit is contained in:
root 2020-02-02 10:30:39 -05:00
parent 52a9697090
commit ea7821dcab

View file

@ -25,18 +25,18 @@
command: a2enmod cgi command: a2enmod cgi
when: apache_install | bool 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: file:
state: directory state: directory
recurse: yes recurse: yes
path: "{{ apache_log_dir }}" path: "{{ apache_log_dir }}" # /var/log/apache2 on debuntu
owner: "{{ apache_user }}" owner: "{{ apache_user }}" # www-data on debuntu
group: "{{ apache_user }}" group: "{{ apache_user }}"
mode: u+rw,g+r,g-w,o-rwx # '0750' turned on too many x bits mode: u+rw,g+r,g-w,o-rwx # '0750' turned on too many x bits
#force: yes #force: yes
when: apache_install | bool 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: file:
state: directory state: directory
recurse: yes recurse: yes
@ -52,7 +52,7 @@
- name: Install /etc/{{ apache_conf_dir }}/awstats.conf from template - name: Install /etc/{{ apache_conf_dir }}/awstats.conf from template
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_install | bool when: apache_install | bool
- 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