mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
expand on check conditions for non-file locations of logs (#674)
Co-authored-by: whysthatso <git@whysthatso.net>
This commit is contained in:
parent
037919e67a
commit
d7bda7ca3a
1 changed files with 5 additions and 1 deletions
|
@ -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("") }}'
|
||||
|
|
Loading…
Reference in a new issue