apache: cleaner way to overwrite the server status suffix

This commit is contained in:
Jérémy Lecour 2018-09-09 23:01:43 +02:00
parent efcd2ed391
commit bfb591dc74
2 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ The **patch** part changes incrementally at each release.
### Changed
### Fixed
* apache: cleaner way to overwrite the server status suffix
* packweb-apache: don't regenerate phpMyAdmin suffix each time
### Security

View File

@ -9,7 +9,11 @@
state: directory
- 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 != ""
- name: generate random string for server-status suffix