From 57a630c05a39942cdb116f54cf37c4abde95f2e4 Mon Sep 17 00:00:00 2001 From: Brendan Shephard Date: Wed, 13 Nov 2024 13:46:15 +1000 Subject: [PATCH] Use copy instead of template for disconnected registries.conf This change switches the Ansible module from template to copy for writing the disconnected registries.conf file. Since trying to use `src` in the `template` module looks for a path and not content. Signed-off-by: Brendan Shephard --- roles/edpm_podman/tasks/install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/edpm_podman/tasks/install.yml b/roles/edpm_podman/tasks/install.yml index 49fe804c6..f86546df5 100644 --- a/roles/edpm_podman/tasks/install.yml +++ b/roles/edpm_podman/tasks/install.yml @@ -107,8 +107,8 @@ when: not edpm_podman_disconnected_ocp - name: Write containers registries.conf - ansible.builtin.template: - src: "{{ edpm_podman_registries_conf }}" + ansible.builtin.copy: + content: "{{ edpm_podman_registries_conf }}" dest: /etc/containers/registries.conf owner: root group: root