Hi,
I have a question regarding create a SVM via ansible. We have a network with static IP adresses.
With Ontap GUI you can create SVM ... The data LIF configuration allows to
either select using subnet with an (static) IP address
or specify IP,netmask and gateway. This works.
In the ansible module
- netapp.ontap.na_ontap_interface
this is not possible to do it like in GUI.
The documentation shows for address:
Specifies the LIF's IP address.
Required when state=present and is_ipv4_link_local if false and subnet_name is not set.
----------- The part of the playbook --------------------
na_ontap_interface:
state: present
interface_name: ansibletestsvm2_nfs_lif1
home_port: e0c-110
home_node: XXXXXXX
role: data
protocols:
- nfs
admin_status: up
failover_policy: system-defined
firewall_policy: mgmt
is_auto_revert: true
address: XX.XX.XX.XX
netmask: 255.255.254.0
subnet_name: subnet vlan 110
----------------------------------------
Any ideas howto configure a SVM with static IP using ansible ?
Running the playbook give the result:
fatal: [localhost]: FAILED! => {"changed": false, "msg": "parameters are mutually exclusive: subnet_name|address, subnet_name|netmask"}
Thanks in advance.
Best regards,
Thomas