agonzalezrh.install_openshift.get_credentials (1.0.4) — module

Get the cluster admin credentials.

| "added in version" 1.0.0 of agonzalezrh.install_openshift"

Authors: Alberto Gonzalez (@agonzalezrh)

Install collection

Install with ansible-galaxy collection install agonzalezrh.install_openshift:==1.0.4


Add to requirements.yml

  collections:
    - name: agonzalezrh.install_openshift
      version: 1.0.4

Description

Get the cluster admin credentials.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Obtain OpenShift cluster credentials
  register: credentials
  agonzalezrh.install_openshift.get_credentials:
    cluster_id: "{{ newcluster.result.id }}"
    offline_token: "{{ offline_token }}"

Inputs

    
cluster_id:
    description: ID of the cluster
    required: true
    type: str

offline_token:
    description: Offline token from console.redhat.com
    required: true
    type: str

Outputs

result:
  description: Result from the API call
  returned: always
  type: dict