1---
2- name: "Get default vdc id"
3  nxos_command:
4    commands: ['show vdc current-vdc | json']
5    provider: "{{ cli }}"
6  register: vdcout
7
8- set_fact: vdcid="{{ vdcout.stdout_lines[0].name }}"
9
10- name: "Configure VDC setting limit-resource module-type f3"
11  nxos_config:
12    commands:
13      - "terminal dont-ask ; vdc {{ vdcid }} ;  limit-resource module-type f3"
14    match: none
15    provider: "{{ cli }}"
16  ignore_errors: yes
17
18- name: Previous command is asynchronous and can take a while.  Allow time for it to complete
19  pause:
20    seconds: 45
21
22- name: "Configure VDC setting allocate interface unallocated-interfaces"
23  nxos_config: &allocate
24    commands:
25      - "terminal dont-ask ; vdc {{ vdcid }} ; allocate interface unallocated-interfaces"
26    match: none
27    provider: "{{ cli }}"
28  ignore_errors: yes
29
30- name: Previous command is asynchronous and can take a while.  Allow time for it to complete
31  pause:
32    seconds: 45
33