From d4baaf1a9720b8deac532d587baa3c9f5567d068 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Tue, 25 May 2021 11:16:48 +0300 Subject: [PATCH] Use podman command instead of collection We don't provide RPM of Ansible Podman collections in OSP 16, so let's use a regular podman command. Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/793098 Change-Id: I788ef39188a9a118531e61d3cee48ad3d8951c1f --- roles/container-build/tasks/main.yaml | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/roles/container-build/tasks/main.yaml b/roles/container-build/tasks/main.yaml index 590ec197f..d1d545948 100644 --- a/roles/container-build/tasks/main.yaml +++ b/roles/container-build/tasks/main.yaml @@ -18,27 +18,27 @@ block: - name: 'Deploy the content provider registry from {{ container_registry_image }}' become: true - containers.podman.podman_container: - name: docker_registry - image: "{{ container_registry_image }}" - publish: - - "{{ content_provider_registry_port }}:{{ content_provider_registry_port }}" - env: - REGISTRY_HTTP_ADDR: "0.0.0.0:{{ content_provider_registry_port }}" - REGISTRY_LOG_LEVEL: debug + shell: >- + podman run + -d + --name docker_registry + -p {{ content_provider_registry_port }}:{{ content_provider_registry_port }} + -e REGISTRY_HTTP_ADDR="0.0.0.0:{{ content_provider_registry_port }}" + -e REGISTRY_LOG_LEVEL=debug + {{ container_registry_image }} tags: - skip_ansible_lint rescue: - name: "Deploy the content provider registry from {{ container_registry_image_fallback }}" become: true - containers.podman.podman_container: - name: docker_registry - image: "{{ container_registry_image_fallback }}" - publish: - - "{{ content_provider_registry_port }}:{{ content_provider_registry_port }}" - env: - REGISTRY_HTTP_ADDR: "0.0.0.0:{{ content_provider_registry_port }}" - REGISTRY_LOG_LEVEL: debug + shell: >- + podman run + -d + --name docker_registry + -p {{ content_provider_registry_port }}:{{ content_provider_registry_port }} + -e REGISTRY_HTTP_ADDR="0.0.0.0:{{ content_provider_registry_port }}" + -e REGISTRY_LOG_LEVEL=debug + {{ container_registry_image_fallback }} tags: - skip_ansible_lint