[Cleanup] packweb-apache

This commit is contained in:
Mathieu Trossevin 2020-06-19 13:25:22 +02:00
parent 498d85b549
commit dc5d206488
Signed by: mtrossevin
GPG key ID: 81987323AE7F3E99
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
---
- fail:
- name: Check for compatibility
fail:
msg: only compatible with Debian >= 8
when:
- ansible_distribution != "Debian" or ansible_distribution_major_version is version('8', '<')

View file

@ -48,7 +48,7 @@
# The last character "\u000A" is a line feed (LF), it's better to keep it
content: "{{ packweb_phpmyadmin_suffix }}\u000A"
force: yes
when: packweb_phpmyadmin_suffix != ""
when: packweb_phpmyadmin_suffix
- name: generate random string for phpmyadmin suffix
shell: "apg -a 1 -M N -n 1 > {{ packweb_phpmyadmin_suffix_file }}"