-
Notifications
You must be signed in to change notification settings - Fork 33
/
template_facts_all.yml
152 lines (142 loc) · 3.71 KB
/
template_facts_all.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
---
# 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}}"
obj_list:
brocade_access_gateway:
- policy
- n_port_settings
brocade_chassis:
- chassis
- ha_status
brocade_fibrechannel_configuration:
- switch_configuration
- f_port_login_settings
- port_configuration
- zone_configuration
- fabric
brocade_logging:
- audit
- log_setting
brocade_maps:
- switch_status_policy_report
- system_resources
- maps_config
- dashboard_misc
brocade_security:
- password_cfg
- auth_spec
- sec_crypto_cfg
- sshutil
brocade_snmp:
- system
brocade_time:
- time_zone
- clock_server
list_list:
brocade_access_gateway:
- port_group
- n_port_map
- f_port_list
- device_list
brocade_extension_ip_route:
- extension_ip_route
brocade_extension_ipsec_policy:
- extension_ipsec_policy
brocade_extension_tunnel:
- extension_tunnel
- extension_tunnel_statistics
- extension_circuit_statistics
brocade_fabric:
- fabric_switch
brocade_fdmi:
- hba
- port
brocade_fibrechannel_logical_switch:
- fibrechannel_logical_switch
brocade_fibrechannel_switch:
- fibrechannel_switch
brocade_fibrechannel_trunk:
- trunk
- performance
- trunk_area
brocade_fru:
- blade
- fan
- power_supply
brocade_interface:
- fibrechannel
- fibrechannel_statistics
- extension_ip_interface
- gigabitethernet
- gigabitethernet_statistics
brocade_license:
- license
brocade_logging:
- syslog_server
- raslog
- raslog_module
- log_quiet_control
brocade_maps:
- paused_cfg
- group
- dashboard_rule
- rule
- monitoring_system_matrix
brocade_media:
- media_rdp
brocade_name_server:
- fibrechannel_name_server
brocade_security:
- ipfilter_policy
- ipfilter_rule
- user_specific_password_cfg
- user_config
- radius_server
- tacacs_server
- ldap_server
- ldap_role_map
- sec_crypto_cfg_template
- sshutil_key
- sshutil_public_key
- security_certificate
brocade_snmp:
- mib_capability
- trap_capability
- v1_account
- v1_trap
- v3_account
- v3_trap
tasks:
- name: gather facts
brocade_facts:
credential: "{{credential}}"
vfid: -1
gather_subset:
- brocade_zoning
- name: gather non-zoning facts - non-list object
brocade_singleton_obj_facts:
credential: "{{credential}}"
vfid: -1
module_name: "{{ item.0.key }}"
obj_name: "{{ item.1 }}"
loop: "{{ obj_list | dict2items | subelements('value') }}"
- name: gather non-zoning facts - list object
brocade_list_obj_facts:
credential: "{{credential}}"
vfid: -1
module_name: "{{ item.0.key }}"
list_name: "{{ item.1 }}"
loop: "{{ list_list | dict2items | subelements('value') }}"
- name: print ansible_facts gathered
debug:
var: ansible_facts