remove hardcoded host value for molecule test openshift_auth (#90)

This commit is contained in:
abikouo
2021-05-26 16:42:41 +02:00
committed by GitHub
parent d696fcaa06
commit 63deaeecf0

View File

@@ -1,8 +1,13 @@
--- ---
- vars: - block:
# TODO(fabianvf) Get this parameter working locally as well - name: Retrieve cluster info
openshift_host: 'https://kubernetes.default.svc' kubernetes.core.k8s_cluster_info:
block: register: k8s_cluster
- name: set openshift host value
set_fact:
openshift_host: "{{ k8s_cluster.connection.host }}"
- name: Log in (obtain access token) - name: Log in (obtain access token)
community.okd.openshift_auth: community.okd.openshift_auth:
username: test username: test