From 368a6fed46cb20671710b8f6897b5187d3ab1378 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Fri, 21 Jun 2024 19:05:21 +0200 Subject: [PATCH] Fix templating. --- roles/role_deploy_feed2imap/tasks/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/role_deploy_feed2imap/tasks/main.yml b/roles/role_deploy_feed2imap/tasks/main.yml index ef11b13..e8f47d8 100644 --- a/roles/role_deploy_feed2imap/tasks/main.yml +++ b/roles/role_deploy_feed2imap/tasks/main.yml @@ -15,11 +15,16 @@ force: true changed_when: false +- name: Fetch feed2imaprc.j2 + ansible.builtin.fetch: + src: "{{ remote_workdir }}/config/docker-mail-stack/feed2imaprc.j2" + dest: "{{ role_path }}/templates/" + flat: yes + - name: Template feed2imap config file ansible.builtin.template: - src: "{{ remote_workdir }}/config/docker-mail-stack/{{ item }}.j2" + src: "{{ item }}.j2" dest: "/usr/local/docker-mounted-files/docker-mail-stack/{{ item }}" - remote_src: yes become: true with_items: - feed2imaprc