-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathplaybook.yml
64 lines (53 loc) · 2.61 KB
/
playbook.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
---
- name: Automated VXLAN deployment with BGP EPVN and HER
hosts: all
connection: network_cli
tasks:
- name: Configuring route-map on cores to preserve next-hop
when: inventory_hostname in groups['core']
cli_config:
config: "{{ lookup('template', 'templates/core_bgp_route_map_next_hop.j2') }}"
register: result
- name: Configuring neighbors globally for BGP
cli_config:
config: "{{ lookup('template', 'templates/bgp_global.j2') }}"
register: result
- name: Activating neighbors for L2VPN EVPN AFI/SAFI
cli_config:
config: "{{ lookup('template', 'templates/bgp_evpn_activate.j2') }}"
register: result
- name: VLAN creation on access switches
when: inventory_hostname in groups['access']
cli_config:
config: "{{ lookup('template', 'templates/access_vlan_configure.j2') }}"
register: result
- name: Mapping VLAN to host ports on access switches
when: inventory_hostname in groups['access']
cli_config:
config: "{{ lookup('template', 'templates/access_vlan_to_interface_mapping.j2') }}"
register: result
- name: Configuring VRFs on access switches
when: inventory_hostname in groups['access']
cli_config:
config: "{{ lookup('template', 'templates/access_vrf_creation.j2') }}"
register: result
- name: Configuring SVIs and mapping to respective VRFs on access switches
when: inventory_hostname in groups['access']
cli_config:
config: "{{ lookup('template', 'templates/access_svi_creation.j2') }}"
register: result
- name: Configuring EVPN instances on access switches
when: inventory_hostname in groups['access']
cli_config:
config: "{{ lookup('template', 'templates/access_config_evpn_inst.j2') }}"
register: result
- name: Mapping VLANs to their respective VNIs on access switches
when: inventory_hostname in groups['access']
cli_config:
config: "{{ lookup('template', 'templates/access_vlan_evpn_mapping.j2') }}"
register: result
- name: Configuring NVE interface(s) on access switches
when: inventory_hostname in groups['access']
cli_config:
config: "{{ lookup('template', 'templates/access_nve_interfaces.j2') }}"
register: result