whitespaces

This commit is contained in:
Jérémy Lecour 2017-03-03 12:22:34 +01:00 committed by Jérémy Lecour
parent 00f96b2b8b
commit 32fc9a822d

View file

@ -3,25 +3,25 @@
name: '{{ item }}' name: '{{ item }}'
state: present state: present
with_items: with_items:
- apache2-mpm-itk - apache2-mpm-itk
- apachetop - apachetop
- libapache2-mod-evasive - libapache2-mod-evasive
- libwww-perl - libwww-perl
tags: tags:
- apache - apache
- name: basic modules are enabled - name: basic modules are enabled
apache2_module: apache2_module:
name: '{{ item }}' name: '{{ item }}'
state: present state: present
with_items: with_items:
- rewrite - rewrite
- expires - expires
- headers - headers
- rewrite - rewrite
- cgi - cgi
tags: tags:
- apache - apache
- name: Copy Apache defaults config file - name: Copy Apache defaults config file
copy: copy:
@ -32,7 +32,7 @@
mode: "644" mode: "644"
force: yes force: yes
tags: tags:
- apache - apache
- name: Copy Apache custom config file - name: Copy Apache custom config file
copy: copy:
@ -43,17 +43,17 @@
mode: "644" mode: "644"
force: no force: no
tags: tags:
- apache - apache
- name: Ensure Apache config files are enabled - name: Ensure Apache config files are enabled
command: "a2enconf {{ item }}" command: "a2enconf {{ item }}"
register: command_result register: command_result
changed_when: "'Enabling' in command_result.stderr" changed_when: "'Enabling' in command_result.stderr"
with_items: with_items:
- z-evolinux-defaults.conf - z-evolinux-defaults.conf
- zzz-evolinux-custom.conf - zzz-evolinux-custom.conf
tags: tags:
- apache - apache
- name: Init private_ipaddr_whitelist.conf file - name: Init private_ipaddr_whitelist.conf file
copy: copy:
@ -64,7 +64,7 @@
mode: "640" mode: "640"
force: no force: no
tags: tags:
- apache - apache
- name: add IP addresses to private IP whitelist - name: add IP addresses to private IP whitelist
lineinfile: lineinfile:
@ -74,7 +74,7 @@
with_items: "{{ apache_private_ipaddr_whitelist_present }}" with_items: "{{ apache_private_ipaddr_whitelist_present }}"
notify: reload apache notify: reload apache
tags: tags:
- apache - apache
- name: remove IP addresses from private IP whitelist - name: remove IP addresses from private IP whitelist
lineinfile: lineinfile:
@ -84,7 +84,7 @@
with_items: "{{ apache_private_ipaddr_whitelist_absent }}" with_items: "{{ apache_private_ipaddr_whitelist_absent }}"
notify: reload apache notify: reload apache
tags: tags:
- apache - apache
- name: Copy private_htpasswd - name: Copy private_htpasswd
copy: copy:
@ -96,7 +96,7 @@
force: no force: no
notify: reload apache notify: reload apache
tags: tags:
- apache - apache
- name: add user:pwd to private htpasswd - name: add user:pwd to private htpasswd
lineinfile: lineinfile:
@ -106,7 +106,7 @@
with_items: "{{ apache_private_htpasswd_present }}" with_items: "{{ apache_private_htpasswd_present }}"
notify: reload apache notify: reload apache
tags: tags:
- apache - apache
- name: remove user:pwd from private htpasswd - name: remove user:pwd from private htpasswd
lineinfile: lineinfile:
@ -116,7 +116,7 @@
with_items: "{{ apache_private_htpasswd_absent }}" with_items: "{{ apache_private_htpasswd_absent }}"
notify: reload apache notify: reload apache
tags: tags:
- apache - apache
- name: is umask already present? - name: is umask already present?
command: "grep -E '^umask ' /etc/apache2/envvars" command: "grep -E '^umask ' /etc/apache2/envvars"
@ -126,7 +126,7 @@
#check_mode: no (for migration to Ansible 2.2) #check_mode: no (for migration to Ansible 2.2)
always_run: yes always_run: yes
tags: tags:
- apache - apache
- name: Add a mark in envvars for umask - name: Add a mark in envvars for umask
blockinfile: blockinfile:
@ -138,4 +138,4 @@
umask 007 umask 007
when: envvar_grep_umask.rc != 0 when: envvar_grep_umask.rc != 0
tags: tags:
- apache - apache