Disable random URL for server-status (probably temporary)

This commit is contained in:
Jérémy Lecour 2017-07-06 14:53:52 +02:00 committed by Jérémy Lecour
parent 242c005f6d
commit 3d77f086ed

View file

@ -197,22 +197,22 @@
regexp: '__PHPMYADMIN_SUFFIX__'
replace: "{{ apache_phpmyadmin_suffix }}"
- block:
- name: generate random string for serverstatus suffix
command: "apg -a 1 -M N -n 1"
changed_when: False
register: _random_serverstatus_suffix
- name: overwrite apache_serverstatus_suffix
set_fact:
apache_serverstatus_suffix: "{{ _random_serverstatus_suffix.stdout }}"
when: apache_serverstatus_suffix == ""
- name: replace server-status suffix in default site index
replace:
dest: /var/www/index.html
regexp: '__SERVERSTATUS_SUFFIX__'
replace: "{{ apache_serverstatus_suffix }}"
# - block:
# - name: generate random string for serverstatus suffix
# command: "apg -a 1 -M N -n 1"
# changed_when: False
# register: _random_serverstatus_suffix
#
# - name: overwrite apache_serverstatus_suffix
# set_fact:
# apache_serverstatus_suffix: "{{ _random_serverstatus_suffix.stdout }}"
# when: apache_serverstatus_suffix == ""
#
# - name: replace server-status suffix in default site index
# replace:
# dest: /var/www/index.html
# regexp: '__SERVERSTATUS_SUFFIX__'
# replace: "{{ apache_serverstatus_suffix }}"
- name: is umask already present?
command: "grep -E '^umask ' /etc/apache2/envvars"