From 6c84ada3613c136038d4070c6a25f36a1a2423e9 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 4 Feb 2021 10:53:49 +0100 Subject: [PATCH] redis: s/content/block/ to workaround the blockinfile bug --- redis/tasks/instance-log2mail.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/tasks/instance-log2mail.yml b/redis/tasks/instance-log2mail.yml index 8f853199..a20e1a0a 100644 --- a/redis/tasks/instance-log2mail.yml +++ b/redis/tasks/instance-log2mail.yml @@ -8,7 +8,7 @@ mode: "0640" create: yes marker: "# {mark} ANSIBLE MANAGED RULES FOR INSTANCE {{ redis_instance_name }}" - content: | + block: | file = {{ redis_log_dir }}/redis-server.log pattern = "Cannot allocate memory" mailto = {{ log2mail_alert_email or general_alert_email | mandatory }}