grdavies.role_nutanix_prism_monitor_task

Nutanix Role for Monitoring Tasks in Prism Element or Central

This Ansible role checks the status of a specific task using its UUID. It will retry for a set number of times with pauses in between each try.

Input Variables

Variable Required Default Choices Comments
role_nutanix_prism_monitor_task_host yes The IP address or fully qualified domain name (FQDN) of the Prism (Element or Central) to connect to.
role_nutanix_prism_monitor_task_host_username yes A valid username with the right permissions to access the Nutanix API.
role_nutanix_prism_monitor_task_host_password yes A valid password for the provided username.
role_nutanix_prism_monitor_task_host_port no 9440 The TCP port for Prism.
role_nutanix_prism_monitor_task_host_validate_certs no false true / false Decide whether to check if the Prism UI certificates are valid.
role_nutanix_prism_monitor_task_debug no false true / false Turn on debug logging.
role_nutanix_prism_monitor_task_uuid yes "" The UUID of the task you want to monitor.
role_nutanix_prism_monitor_task_retries no 60 How many times to check the task's status.
role_nutanix_prism_monitor_task_retry_delay no 60 The wait time in seconds between each status check.
role_nutanix_prism_monitor_task_allow_failure no false true / false Whether the Nutanix task is allowed to fail (for instance, during an LCM upgrade when the CVM that runs the API service restarts).

Returned Variables

Variable Values Comments
role_nutanix_prism_monitor_task_result The data for the task that was monitored.

Dependencies

  • grdavies.role_nutanix_prism_api

Example Playbook

- hosts: localhost
  gather_facts: false
  roles:
    - role: grdavies.role_nutanix_prism_monitor_task
  vars:
    role_nutanix_prism_monitor_task_host: 10.38.185.37
    role_nutanix_prism_monitor_task_host_username: admin
    role_nutanix_prism_monitor_task_host_password: nx2Tech165!
    role_nutanix_prism_monitor_task_uuid: "3a54c168-b765-4ba3-4a15-5164dacf7064"

License

See LICENSE.md

Author Information

Ross Davies

Informazioni sul progetto

Role to monitor the status of a task on either Prism Element or Prism Central

Installa
ansible-galaxy install grdavies.role_nutanix_prism_monitor_task
Licenza
mit
Download
203
Proprietario