From 741fd32d58c810568881c7dd27540c0fe5f8d7d0 Mon Sep 17 00:00:00 2001 From: SecretMineDE Date: Sun, 3 Mar 2024 10:43:17 +0100 Subject: [PATCH] fix template task --- tasks/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2f49463..42cb8cc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,11 +8,12 @@ - name: "Deploy configs" ansible.builtin.template: - src: "templates/{{ item.template }}" + src: "templates/{{ item.src }}" + dest: "{{ item.dest }}" loop: - - template: "auto-upgrades.j2" + - src: "auto-upgrades.j2" dest: "/etc/apt/apt.conf.d/20auto-upgrades" - - template: "unattended-upgrades.j2" + - src: "unattended-upgrades.j2" dest: "/etc/apt/apt.conf.d/50unattended-upgrades" when: "autoupdate_enabled"