Skip to content

Commit

Permalink
[automation_platform_loader] Run oc command on the EE (or localhost) (#…
Browse files Browse the repository at this point in the history
…7371)

* [automation_platform_loader] Run oc command on the EE

Currently this login is overriding the .kube/config on the ec2-user (or login user)

* Update ocp_bearer_token.yml

* Update ocp_bearer_token.yml
  • Loading branch information
agonzalezrh authored Nov 15, 2023
1 parent 217cff4 commit d585f3e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
oc login --username {{ openshift_admin_user }}
--password {{ r_kubeadmin_password.content | b64decode }}
{{ openshift_api_url }}
delegate_to: localhost

- name: Get OCP bearer token
ansible.builtin.command: oc whoami -t
delegate_to: localhost
register: r_oc_whoami

- name: Create OCP bearer token as fact
Expand Down

0 comments on commit d585f3e

Please sign in to comment.