expand on check conditions for non-file locations of logs (#674)

Co-authored-by: whysthatso <git@whysthatso.net>
This commit is contained in:
Andreas Wagner 2023-05-22 16:53:33 +03:00 committed by GitHub
parent 037919e67a
commit d7bda7ca3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,11 @@
owner: "{{ mysql_hardening_user }}"
group: "{{ mysql_hardening_group }}"
mode: "0640"
when: item is defined and item != ""
when:
- item is defined
- item != ""
- item != "stderr"
- item != "stdout"
loop:
- "{{ mysql_settings.settings.log_error }}"
- '{{ mysql_hardening_log_file | default("") }}'