-
Notifications
You must be signed in to change notification settings - Fork 0
/
L3LS-Builder.yml
75 lines (52 loc) · 1.36 KB
/
L3LS-Builder.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
---
- name: Play 1 - Set System Information
hosts: all
gather_facts: no
tasks:
- name: Task 1 - Set Hostname and Domain Name
eos_system:
hostname: "{{ inventory_hostname }}"
domain_name: "{{ domain_name }}"
- name: Task 2 - Set DNS Server, Set Lookup Source to Mgmt1
eos_system:
name_servers:
- "{{ dns_server }}"
lookup_source:
- interface: Management1
- name: Task 3 - Set NTP Server
eos_config:
src: ntp.j2
- name: Play 2 - Get Information About Host
hosts: all
gather_facts: no
tasks:
- name: Task 1 - Gather EOS Facts
eos_facts:
- name: Play 3 - Configure Spine/Leaf Interfaces
hosts: all
gather_facts: no
tasks:
- name: Task 1 - Set Interface Descriptions
tags: intdesc
eos_config:
src: intdesc.j2
- name: Task 2 - Set Loopback Interface IP Addresses
tags: loopips
eos_config:
src: loopips.j2
- name: Task 3 - Set Interface IP Addresses
tags: intips
eos_config:
src: intips.j2
- name: Play 4 - Configure OSPF
hosts: all
gather_facts: no
tasks:
- name: Task 1 - Configure the OSPF Process
tags: ospfproc
eos_config:
src: ospfproc.j2
- name: Task 2 - Enable OSPF on Interfaces
tags: ospfints
eos_config:
src: ospfints.j2