Skip to content

Commit

Permalink
Use copy instead of template for disconnected registries.conf
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bshephar authored and openshift-cherrypick-robot committed Dec 2, 2024
1 parent e8b282c commit 57a630c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/edpm_podman/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57a630c

Please sign in to comment.