mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Remove oc command usage from docker registry k8s reference
This commit is contained in:
@@ -20,16 +20,6 @@
|
|||||||
# TODO: This is duplicated in the openshift role, probably needs to be moved to the image_build role
|
# TODO: This is duplicated in the openshift role, probably needs to be moved to the image_build role
|
||||||
- name: Manage AWX Container Images
|
- name: Manage AWX Container Images
|
||||||
block:
|
block:
|
||||||
- name: Get docker registry password from oc if needed
|
|
||||||
block:
|
|
||||||
- name: Set docker registry password
|
|
||||||
shell: oc whoami -t
|
|
||||||
register: docker_registry_password_shell
|
|
||||||
- name: Set docker registry password
|
|
||||||
set_fact:
|
|
||||||
docker_registry_password: "{{ docker_registry_password_shell.stdout }}"
|
|
||||||
when: docker_registry_password is not defined
|
|
||||||
|
|
||||||
- name: Authenticate with Docker registry
|
- name: Authenticate with Docker registry
|
||||||
docker_login:
|
docker_login:
|
||||||
registry: "{{ docker_registry }}"
|
registry: "{{ docker_registry }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user