Remove oc command usage from docker registry k8s reference

This commit is contained in:
Matthew Jones
2018-01-10 09:38:00 -05:00
parent d0b3cac72a
commit fad4a549d0

View File

@@ -20,16 +20,6 @@
# TODO: This is duplicated in the openshift role, probably needs to be moved to the image_build role
- name: Manage AWX Container Images
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
docker_login:
registry: "{{ docker_registry }}"