nsxt_virtual_ip – Sets and clears cluster virtual IP address

New in version 2.7.

Synopsis

  • Sets the cluster virtual IP address. Note, all nodes in the management cluster must be in the same subnet. If not, a 409 CONFLICT status is returned.

Parameters

Parameter Choices/Defaults Comments
hostname
string / required
Deployed NSX manager hostname.
password
string / required
The password to authenticate with the NSX manager.
state
- / required
    Choices:
  • present
  • absent
State can be either 'present' or 'absent'. 'present' is used to create or update resource. 'absent' is used to delete resource.
username
string / required
The username to authenticate with the NSX manager.
virtual_ip_address
string / required
Virtual IP address to be set.

Examples

- name: Adds cluster virtual IP address
  nsxt_virtual_ip:
      hostname: "10.192.167.137"
      username: "admin"
      password: "Admin!23Admin"
      validate_certs: False
      virtual_ip_address: "10.192.167.141"
      state: present

Status

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

  • This module is maintained by the Ansible Community. [community]

Authors

  • Rahul Raghuvanshi