-
Notifications
You must be signed in to change notification settings - Fork 13
/
vsf_conductor_config.yml
45 lines (41 loc) · 1.25 KB
/
vsf_conductor_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
- hosts: all
gather_facts: False
collections:
- arubanetworks.aoscx
vars:
ansible_connection: network_cli
tasks:
- name: Configure VSF secondary member on Conductor
aoscx_config:
lines:
- do auto-confirm
- vsf secondary-member {{vsf_secondary | default('2')}}
when: vsf_role | default('conductor') == 'conductor'
- name: Configure VSF Link 1 on Conductor
aoscx_config:
lines:
- link 1 {{vsf_link1 | default('1/1/26')}}
before:
- vsf member 1
when: vsf_role | default('conductor') == 'conductor'
- name: Configure VSF Link 2 on Conductor
aoscx_config:
lines:
- link 2 {{vsf_link2}}
before:
- vsf member 1
when: vsf_role | default('conductor') == 'conductor' and vsf_link2 is defined
- name: Pause for 25 seconds to allow for switch to reboot
pause:
seconds: 25
- name: Wait for Standby to join stack by entering Show vsf
aoscx_command:
commands:
- 'show vsf'
wait_for:
- result[0] contains "Standby"
#- result[0] contains "Member"
match: all
retries: 20
interval: 5