ibm.storage_virtualize.ibm_svc_manage_ip module – This module manages IP provisioning on IBM Storage Virtualize family systems
Note
This module is part of the ibm.storage_virtualize collection (version 2.7.4).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install ibm.storage_virtualize.
To use it in a playbook, specify: ibm.storage_virtualize.ibm_svc_manage_ip.
New in ibm.storage_virtualize 1.8.0
Synopsis
- Ansible interface to manage ‘mkip’ and ‘rmip’ commands. 
- This module can run on all IBM Storage Virtualize systems running on 8.4.2.0 or later. 
Parameters
| Parameter | Comments | 
|---|---|
| The hostname or management IP of the Storage Virtualize system. | |
| Domain for the Storage Virtualize system. Valid when hostname is used for the parameter clustername. | |
| Specifies the gateway address. Applies when state=present. | |
| Specifies a valid ipv4/ipv6 address. | |
| Path of debug log file. | |
| Specifies the name of the node. | |
| REST API password for the Storage Virtualize system. The parameters username and password are required if not using token to authenticate a user. | |
| Specifies a port ranging from 1 - 16 to which IP shall be assigned. | |
| Specifies the name of the portset object. | |
| Specifies the flag when IP is shared between multiple portsets. Applies when state=present. Choices: 
 | |
| Creates ( Choices: 
 | |
| Specifies the prefix of subnet mask. Applies when state=present. | |
| The authentication token to verify a user on the Storage Virtualize system. To generate a token, use the ibm_svc_auth module. | |
| REST API username for the Storage Virtualize system. The parameters username and password are required if not using token to authenticate a user. | |
| Validates certification. Choices: 
 | |
| Specifies a vlan id ranging from 1 - 4096. Applies when state=present. | 
Notes
Note
- This module supports - check_mode.
Examples
- name: Create IP provisioning
  ibm.storage_virtualize.ibm_svc_manage_ip:
   clustername: "{{ cluster }}"
   username: "{{ username }}"
   password: "{{ password }}"
   log_path: /tmp/playbook.debug
   node: node1
   port: 1
   portset: portset0
   ip_address: x.x.x.x
   subnet_prefix: 20
   gateway: x.x.x.x
   vlan: 1
   shareip: true
   state: present
- name: Remove IP provisioning
  ibm.storage_virtualize.ibm_svc_manage_ip:
   clustername: "{{ cluster }}"
   username: "{{ username }}"
   password: "{{ password }}"
   log_path: /tmp/playbook.debug
   node: node1
   port: 1
   portset: portset0
   ip_address: x.x.x.x
   state: absent
