-
Notifications
You must be signed in to change notification settings - Fork 33
/
ag_enable.yml
40 lines (32 loc) · 948 Bytes
/
ag_enable.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
---
# Copyright 2019 Broadcom. All rights reserved.
# The term 'Broadcom' refers to Broadcom Inc. and/or its subsidiaries.
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
- hosts: san_eng_zone_seed_san_a
gather_facts: False
vars:
credential:
fos_ip_addr: "{{fos_ip_addr}}"
fos_user_name: "{{fos_user_name}}"
fos_password: "{{fos_password}}"
https: "{{fos_https}}"
tasks:
- name: switch disabled
brocade_fibrechannel_switch:
credential: "{{credential}}"
vfid: -1
switch:
enabled_state: False
- name: ag mode enabled. if changing, switch will reboot afterward.
brocade_fibrechannel_switch:
credential: "{{credential}}"
vfid: -1
switch:
ag_mode: 3
- name: switch enabled
brocade_fibrechannel_switch:
credential: "{{credential}}"
vfid: -1
switch:
enabled_state: True