Skip to content

Commit

Permalink
tests: update setup.yml
Browse files Browse the repository at this point in the history
use the new syntax (v2) in /etc/containers/registries.conf

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8ebf635)
  • Loading branch information
guits authored and dsavineau committed Dec 2, 2021
1 parent 0715c60 commit 57765c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@
- name: allow nodes to use an insecure registry - podman
ini_file:
path: /etc/containers/registries.conf
section: registries.insecure
option: registries
value: "['{{ ceph_docker_registry }}']"
section: "[registry]"
option: "{{ item.key }}"
value: "{{ item.value }}"
loop: "{{ insecure_registry_config | dict2items }}"
vars:
insecure_registry_config:
location: '"{{ ceph_docker_registry }}"'
insecure: "true"
when: result_podman_install.skipped is not defined

- name: restart docker
Expand Down

0 comments on commit 57765c9

Please sign in to comment.