mirror of
https://github.com/openshift/community.okd.git
synced 2026-03-27 03:13:08 +00:00
remove hardcoded host value for molecule test openshift_auth (#90)
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
---
|
||||
- vars:
|
||||
# TODO(fabianvf) Get this parameter working locally as well
|
||||
openshift_host: 'https://kubernetes.default.svc'
|
||||
block:
|
||||
- block:
|
||||
- name: Retrieve cluster info
|
||||
kubernetes.core.k8s_cluster_info:
|
||||
register: k8s_cluster
|
||||
|
||||
- name: set openshift host value
|
||||
set_fact:
|
||||
openshift_host: "{{ k8s_cluster.connection.host }}"
|
||||
|
||||
- name: Log in (obtain access token)
|
||||
community.okd.openshift_auth:
|
||||
username: test
|
||||
|
||||
Reference in New Issue
Block a user