Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions roles/update/tasks/create_local_openstackclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
containers.podman.podman_login:
username: "{{ cifmw_registry_token.credentials.username }}"
password: "{{ cifmw_registry_token.credentials.password }}"
registry: "registry.redhat.io"
registry: "registry.stage.redhat.io"
no_log: true

- name: Collect and save OpenStack config files
Expand All @@ -50,10 +50,14 @@
set -euo pipefail
OS_CLOUD=default /usr/bin/openstack --insecure "$@"

- name: Update image name to pull from stage
ansible.builtin.set_fact:
openstackclient_stage_image: "{{ openstackclient_image | regex_replace('^registry\\.redhat\\.io(?=/)', 'registry.stage.redhat.io') }}"

- name: Ensure lopenstackclient container is running
containers.podman.podman_container:
name: lopenstackclient
image: "{{ openstackclient_image }}"
image: "{{ openstackclient_stage_image }}"
state: started
net: host
volumes:
Expand Down
Loading