redis: s/content/block/ to workaround the blockinfile bug

This commit is contained in:
Jérémy Lecour 2021-02-04 10:53:49 +01:00 committed by Jérémy Lecour
parent 1785e6a500
commit 6c84ada361

View file

@ -8,7 +8,7 @@
mode: "0640" mode: "0640"
create: yes create: yes
marker: "# {mark} ANSIBLE MANAGED RULES FOR INSTANCE {{ redis_instance_name }}" marker: "# {mark} ANSIBLE MANAGED RULES FOR INSTANCE {{ redis_instance_name }}"
content: | block: |
file = {{ redis_log_dir }}/redis-server.log file = {{ redis_log_dir }}/redis-server.log
pattern = "Cannot allocate memory" pattern = "Cannot allocate memory"
mailto = {{ log2mail_alert_email or general_alert_email | mandatory }} mailto = {{ log2mail_alert_email or general_alert_email | mandatory }}