From 5b4a19040f6a652b68e0f1ca8402d390a7c68447 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 10 Apr 2020 12:37:08 +0200 Subject: [PATCH] Use flat file copy --- ansible/pre-deploy.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 2753dc6..23a82d2 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -52,6 +52,18 @@ with_items: - src: config.json dest: /var/lib/alerta/config.json + + # Note(decentral1se): can't use "template" module here + # because there are {{ }} jinja markers in this file! + - name: Copy over email templates + become: true + copy: + src: "{{ item.src }}" + dest: "{{ item.dest }}" + owner: "{{ docker_user_uid }}" + group: "{{ docker_user_gid }}" + mode: 0664 + with_items: - src: email.tmpl dest: /var/lib/alerta/email.tmpl