agonzalezrh.install_openshift.wait_for_hosts (1.0.4) — module

Wait for the hosts to be ready and configure them.

| "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

Wait for the hosts to be ready and configure them.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Wait for the hosts to be ready
  agonzalezrh.install_openshift.wait_for_hosts:
    cluster_id: "{{ newcluster.result.id }}"
    offline_token: "{{ offline_token }}"
    expected_hosts: 1
    wait_timeout: 1200

Inputs

    
delay:
    default: 10
    description: Delay time between checks
    required: false
    type: int

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

infra_env_id:
    description: The infra-env ID of the host to be updated. Required with hosts are assigned.
    required: false
    type: str

wait_timeout:
    default: 600
    description: Wait timeout in seconds
    required: false
    type: int

expected_hosts:
    description: Expected number of the hosts
    required: true
    type: int

Outputs

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