-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yaml
111 lines (92 loc) · 3.16 KB
/
playbook.yaml
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
- hosts: NewFabric
connection: httpapi
gather_facts: false
collections:
- dellemc.enterprise_sonic
tasks:
- name: VRF Mgmt
vars:
ansible_connection: network_cli
sonic_config:
lines:
- ip vrf mgmt
register: result
- pause:
seconds: 30
ignore_errors: yes
- name: Push Configurations For Custom CLIs. pre
vars:
ansible_connection: network_cli
sonic_config:
src: fdc_clis_pre.j2
register: result
- name: Configure System
sonic_system:
config: '{{sonic_system}}'
when: sonic_system is defined and sonic_system
- name: Configure Port Breakouts
sonic_port_breakout:
config: '{{sonic_port_breakout}}'
when: sonic_port_breakout is defined and sonic_port_breakout
- name: Create Vlans
sonic_vlans:
config: '{{sonic_vlans}}'
when: sonic_vlans is defined and sonic_vlans
- name: Create LAG Interfaces
sonic_lag_interfaces:
config: '{{sonic_lag_interfaces}}'
when: sonic_lag_interfaces is defined and sonic_lag_interfaces
- name: Create Interfaces
sonic_interfaces:
config: '{{sonic_interfaces}}'
when: sonic_interfaces is defined and sonic_interfaces
- name: Create L2 Interfaces
sonic_l2_interfaces:
config: '{{sonic_l2_interfaces}}'
when: sonic_l2_interfaces is defined and sonic_l2_interfaces
- name: Create VRF
sonic_vrfs:
config: '{{sonic_vrf_interfaces}}'
when: sonic_vrf_interfaces is defined and sonic_vrf_interfaces
- name: Create L3 Interfaces
sonic_l3_interfaces:
config: '{{sonic_l3_interfaces}}'
when: sonic_l3_interfaces is defined and sonic_l3_interfaces
- name: Create MCLAG
sonic_mclag:
config: '{{sonic_mclag}}'
when: sonic_mclag is defined and sonic_mclag
- name: Create BGP Configuration
sonic_bgp:
config: '{{sonic_bgp}}'
when: sonic_bgp is defined and sonic_bgp
- name: Create BGP AF Configuration
sonic_bgp_af:
config: '{{sonic_bgp_af}}'
when: sonic_bgp_af is defined and sonic_bgp_af
- name: Create BGP Neighbors Configuration
sonic_bgp_neighbors:
config: '{{sonic_bgp_neighbors}}'
when: sonic_bgp_neighbors is defined and sonic_bgp_neighbors
- name: Create BGP Neighbors AF Configuration
sonic_bgp_neighbors_af:
config: '{{sonic_bgp_neighbors_af}}'
when: sonic_bgp_neighbors_af is defined and sonic_bgp_neighbors_af
- name: Create VXLANs
sonic_vxlans:
config: '{{sonic_vxlans}}'
when: sonic_vxlans is defined and sonic_vxlans
- name: Create TACACS configuration
sonic_tacacs_server:
config: '{{sonic_tacacs_server}}'
when: sonic_tacacs_server is defined and sonic_tacacs_server
- name: Create AAA configuration
sonic_aaa:
config: '{{sonic_aaa}}'
when: sonic_aaa is defined and sonic_aaa
- name: Push Configurations For Custom CLIs
vars:
ansible_connection: network_cli
sonic_config:
src: fdc_clis.j2
register: result