Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # START EXTRA-VARS
- ---
- netapp_nodes:
- - name: cdot91p13-c1-01
- licenses: 1234567
- serial_number: 4082368507
- a0a_net: ['1111', '2222', '3333']
- - name: cdot91p13-c1-02
- licenses: 1234567
- serial_number: 4034389062
- a0a_net: ['4444', '5555', '6666']
- # END EXTRA-VARS
- # START PLAYBOOK
- ---
- - hosts: localhost
- gather_facts: no
- connection: local
- vars_files:
- - vault.yml
- tasks:
- - name: create VLAN
- na_ontap_net_vlan:
- state: present
- node: '{{ item.name }}'
- vlanid: '{{ item.a0a_net[0] }}'
- parent_interface: '{{ ifgrp_a0a }}'
- username: '{{ netapp_username }}'
- password: '{{ netapp_password }}'
- hostname: '{{ netapp_hostname }}'
- with_nested:
- - ['{{ netapp_nodes }}']
- - ['{{ netapp_nodes }}']
- # END PLAYBOOK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement