--- #Offline and delete node mgmt LIF #node_mgmt_lif_offline.yml - hosts: localhost gather_facts: false collections: - netapp.ontap vars_files: "{{ file }}" vars: login: &login username: "{{ username }}" password: "{{ password }}" https: true validate_certs: false name: "Modify LIF on cluster: {{ cluster }}" tasks: - name: Offline node mgmt lif na_ontap_interface: state: present admin_status: down interface_name: "{{ cluster }}-01_mgmt_auto" address: "{{ node1.dhcp_ip }}" netmask: 255.255.255.0 service_policy: default-management failover_policy: local-only ipspace: Default home_node: "{{ cluster }}-01" home_port: "{{ node1.node_mgmt_home_port }}" hostname: "{{ cluster_mgmt }}" <<: *login - name: Delete LIF na_ontap_interface: state: absent interface_name: "{{ cluster }}-01_mgmt_auto" vserver: "{{ cluster }}" hostname: "{{ cluster_mgmt }}" <<: *login