Advertisement
Guest User

Untitled

a guest
Oct 26th, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.82 KB | None | 0 0
  1. # START EXTRA-VARS
  2. ---
  3. netapp_nodes:
  4.   - name: cdot91p13-c1-01
  5.     licenses: 1234567
  6.     serial_number: 4082368507
  7.     a0a_net: ['1111', '2222', '3333']
  8.   - name: cdot91p13-c1-02
  9.     licenses: 1234567
  10.     serial_number: 4034389062
  11.     a0a_net: ['4444', '5555', '6666']
  12. # END EXTRA-VARS
  13.  
  14. # START PLAYBOOK
  15. ---
  16. - hosts: localhost
  17.   gather_facts: no
  18.   connection: local
  19.  
  20.   vars_files:
  21.    - vault.yml
  22.  
  23.   tasks:
  24.   - name: create VLAN
  25.     na_ontap_net_vlan:
  26.       state: present
  27.       node: '{{ item.name }}'
  28.       vlanid: '{{ item.a0a_net[0] }}'
  29.       parent_interface: '{{ ifgrp_a0a }}'
  30.       username: '{{ netapp_username }}'
  31.       password: '{{ netapp_password }}'
  32.       hostname: '{{ netapp_hostname }}'
  33.  
  34.     with_nested:
  35.      - ['{{ netapp_nodes }}']
  36.       - ['{{ netapp_nodes }}']
  37.  
  38.  
  39. # END PLAYBOOK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement