hmc_registration – Register or unregister an HMC host in IBM PowerVC.

Synopsis

Register or unregister a HMC managed host in IBM PowerVC.

Parameters

name (optional, str, None)

Display name of the HMC host.

access_ip (optional, str, None)

Management IP address of the HMC host.

user (optional, str, None)

User ID of the HMC host.

password (True, str, None)

Password for the HMC host user.

host_id (optional, str, None)

UUID of the HMC host.

state (True, str, None)

Desired state of the HMC host.

Examples

- name: Register an HMC host
  hosts: localhost
  gather_facts: no
  tasks:
     - name: Register the HMC host
       ibm.powervc.hmc_registration:
          cloud: "CLOUD"
          name: "HOST_DISPLAY_NAME"
          access_ip: "IP_ADDRESS"
          user: "USER_ID"
          password: "PASSWORD"
          state: present
       register: output
     - debug:
          var: output.result

- name: Unregister an HMC host
  hosts: localhost
  gather_facts: no
  tasks:
     - name: Unregister the HMC host
       ibm.powervc.hmc_registration:
          cloud: "CLOUD"
          host_id: "HMC_UUID"
          state: absent
       register: output
     - debug:
          var: output.result

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by PowerVC.

Authors

  • Karteesh Kumar Vipparapelli (@vkarteesh)