Do you guys see anything wrong in the below yaml file. ansible version 2.9.18.
It errors out when i try to run this playbook.
-
hosts: localhost
collections:- netapp.ontap
vars:
hostname: *******
username: netapp-ansible
password: ********tasks:
- name: Create interface
na_ontap_interface:
state: present
interface_name: "{{ item.interface_name }}"
home_port: "{{ item.home_port }}"
home_node: "{{ item.node }}"
role: data
is_auto_revert: true
protocols: "{{ item.protocols }}"
admin_status: up
firewall_policy: system-defined
address: "{{ item.address }}"
netmask: 255.255.252.0
vserver: "{{ vserver }}"
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
https: true
validate_certs: false
with_items:- { node: ‘TTPDNAS-02’,interface_name: 'datalif1-52',vserver: 'nas01', protocols: 'nfs,cifs', home_port: 'h0h-52', address: '10.x.52.x' }