mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Enable image stream lookups in AWX OpenShift Project
See the OpenShift docs on this for more info: https://docs.openshift.com/container-platform/3.6/dev_guide/managing_images.html#using-is-with-k8s If you are not using OpenShift’s internal registry you will need to manually set awx_task_openshift_image and awx_web_openshift_image.
This commit is contained in:
parent
3a2ec25fb4
commit
a043369d07
@ -68,14 +68,17 @@
|
||||
when: docker_registry is defined
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Enable image stream lookups for awx images
|
||||
shell: "oc set image-lookup --all -n {{ awx_openshift_project }}"
|
||||
|
||||
- name: Set full web image path
|
||||
set_fact:
|
||||
awx_web_openshift_image: "{{ docker_registry }}/{{ docker_registry_repository }}/{{ awx_web_image }}:{{ awx_version }}"
|
||||
awx_web_openshift_image: "{{ awx_web_image }}:{{ awx_version }}"
|
||||
when: awx_web_openshift_image is not defined
|
||||
|
||||
- name: Set full task image path
|
||||
set_fact:
|
||||
awx_task_openshift_image: "{{ docker_registry }}/{{ docker_registry_repository }}/{{ awx_task_image }}:{{ awx_version }}"
|
||||
awx_task_openshift_image: "{{ awx_task_image }}:{{ awx_version }}"
|
||||
when: awx_task_openshift_image is not defined
|
||||
when: dockerhub_base is not defined
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user