diff options
Diffstat (limited to 'ansible_collections/dellemc/unity/plugins/modules/interface.py')
-rw-r--r-- | ansible_collections/dellemc/unity/plugins/modules/interface.py | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/ansible_collections/dellemc/unity/plugins/modules/interface.py b/ansible_collections/dellemc/unity/plugins/modules/interface.py index 2523f940e..70be8021a 100644 --- a/ansible_collections/dellemc/unity/plugins/modules/interface.py +++ b/ansible_collections/dellemc/unity/plugins/modules/interface.py @@ -79,55 +79,55 @@ notes: EXAMPLES = r''' - - name: Add Interface as Backup to NAS Server - dellemc.unity.interface: - unispherehost: "{{unispherehost}}" - username: "{{username}}" - password: "{{password}}" - validate_certs: "{{validate_certs}}" - nas_server_name: "dummy_nas" - ethernet_port_name: "SP A 4-Port Card Ethernet Port 0" - role: "BACKUP" - interface_ip: "xx.xx.xx.xx" - netmask: "xx.xx.xx.xx" - gateway: "xx.xx.xx.xx" - vlan_id: 324 - state: "present" - - - name: Add Interface as Production to NAS Server - dellemc.unity.interface: - unispherehost: "{{unispherehost}}" - username: "{{username}}" - password: "{{password}}" - validate_certs: "{{validate_certs}}" - nas_server_name: "dummy_nas" - ethernet_port_name: "SP A 4-Port Card Ethernet Port 0" - role: "PRODUCTION" - interface_ip: "xx.xx.xx.xx" - netmask: "xx.xx.xx.xx" - gateway: "xx.xx.xx.xx" - vlan_id: 324 - state: "present" - - - name: Get interface details - dellemc.unity.interface: - unispherehost: "{{unispherehost}}" - username: "{{username}}" - password: "{{password}}" - validate_certs: "{{validate_certs}}" - nas_server_name: "dummy_nas" - interface_ip: "xx.xx.xx.xx" - state: "present" - - - name: Delete Interface - dellemc.unity.interface: - unispherehost: "{{unispherehost}}" - username: "{{username}}" - password: "{{password}}" - validate_certs: "{{validate_certs}}" - nas_server_name: "dummy_nas" - interface_ip: "xx.xx.xx.xx" - state: "absent" +- name: Add Interface as Backup to NAS Server + dellemc.unity.interface: + unispherehost: "{{unispherehost}}" + username: "{{username}}" + password: "{{password}}" + validate_certs: "{{validate_certs}}" + nas_server_name: "dummy_nas" + ethernet_port_name: "SP A 4-Port Card Ethernet Port 0" + role: "BACKUP" + interface_ip: "xx.xx.xx.xx" + netmask: "xx.xx.xx.xx" + gateway: "xx.xx.xx.xx" + vlan_id: 324 + state: "present" + +- name: Add Interface as Production to NAS Server + dellemc.unity.interface: + unispherehost: "{{unispherehost}}" + username: "{{username}}" + password: "{{password}}" + validate_certs: "{{validate_certs}}" + nas_server_name: "dummy_nas" + ethernet_port_name: "SP A 4-Port Card Ethernet Port 0" + role: "PRODUCTION" + interface_ip: "xx.xx.xx.xx" + netmask: "xx.xx.xx.xx" + gateway: "xx.xx.xx.xx" + vlan_id: 324 + state: "present" + +- name: Get interface details + dellemc.unity.interface: + unispherehost: "{{unispherehost}}" + username: "{{username}}" + password: "{{password}}" + validate_certs: "{{validate_certs}}" + nas_server_name: "dummy_nas" + interface_ip: "xx.xx.xx.xx" + state: "present" + +- name: Delete Interface + dellemc.unity.interface: + unispherehost: "{{unispherehost}}" + username: "{{username}}" + password: "{{password}}" + validate_certs: "{{validate_certs}}" + nas_server_name: "dummy_nas" + interface_ip: "xx.xx.xx.xx" + state: "absent" ''' RETURN = r''' |