forked from evolix/ansible-roles
apache: cleaner way to overwrite the server status suffix
This commit is contained in:
parent
efcd2ed391
commit
bfb591dc74
|
@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
* apache: cleaner way to overwrite the server status suffix
|
||||||
* packweb-apache: don't regenerate phpMyAdmin suffix each time
|
* packweb-apache: don't regenerate phpMyAdmin suffix each time
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: set apache serverstatus suffix if provided
|
- name: set apache serverstatus suffix if provided
|
||||||
shell: "echo {{ apache_serverstatus_suffix }} > {{ apache_serverstatus_suffix_file }}"
|
copy:
|
||||||
|
dest: "{{ apache_serverstatus_suffix_file }}"
|
||||||
|
# The last character "\u000A" is a line feed (LF), it's better to keep it
|
||||||
|
content: "{{ apache_serverstatus_suffix }}\u000A"
|
||||||
|
force: yes
|
||||||
when: apache_serverstatus_suffix != ""
|
when: apache_serverstatus_suffix != ""
|
||||||
|
|
||||||
- name: generate random string for server-status suffix
|
- name: generate random string for server-status suffix
|
||||||
|
|
Loading…
Reference in a new issue