forked from evolix/ansible-roles
Disable random URL for server-status (probably temporary)
This commit is contained in:
parent
242c005f6d
commit
3d77f086ed
|
@ -197,22 +197,22 @@
|
||||||
regexp: '__PHPMYADMIN_SUFFIX__'
|
regexp: '__PHPMYADMIN_SUFFIX__'
|
||||||
replace: "{{ apache_phpmyadmin_suffix }}"
|
replace: "{{ apache_phpmyadmin_suffix }}"
|
||||||
|
|
||||||
- block:
|
# - block:
|
||||||
- name: generate random string for serverstatus suffix
|
# - name: generate random string for serverstatus suffix
|
||||||
command: "apg -a 1 -M N -n 1"
|
# command: "apg -a 1 -M N -n 1"
|
||||||
changed_when: False
|
# changed_when: False
|
||||||
register: _random_serverstatus_suffix
|
# register: _random_serverstatus_suffix
|
||||||
|
#
|
||||||
- name: overwrite apache_serverstatus_suffix
|
# - name: overwrite apache_serverstatus_suffix
|
||||||
set_fact:
|
# set_fact:
|
||||||
apache_serverstatus_suffix: "{{ _random_serverstatus_suffix.stdout }}"
|
# apache_serverstatus_suffix: "{{ _random_serverstatus_suffix.stdout }}"
|
||||||
when: apache_serverstatus_suffix == ""
|
# when: apache_serverstatus_suffix == ""
|
||||||
|
#
|
||||||
- name: replace server-status suffix in default site index
|
# - name: replace server-status suffix in default site index
|
||||||
replace:
|
# replace:
|
||||||
dest: /var/www/index.html
|
# dest: /var/www/index.html
|
||||||
regexp: '__SERVERSTATUS_SUFFIX__'
|
# regexp: '__SERVERSTATUS_SUFFIX__'
|
||||||
replace: "{{ apache_serverstatus_suffix }}"
|
# replace: "{{ apache_serverstatus_suffix }}"
|
||||||
|
|
||||||
- name: is umask already present?
|
- name: is umask already present?
|
||||||
command: "grep -E '^umask ' /etc/apache2/envvars"
|
command: "grep -E '^umask ' /etc/apache2/envvars"
|
||||||
|
|
Loading…
Reference in a new issue