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:
# 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