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 committed Nov 14, 2024
1 parent 15de57d commit f7f124d
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 f7f124d

Please sign in to comment.