forked from aristanetworks/netdevops-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdc1-fabric-deploy-cvp.yml
52 lines (51 loc) · 1.45 KB
/
dc1-fabric-deploy-cvp.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
---
- name: Build Switch configuration
hosts: DC1_FABRIC
connection: local
gather_facts: false
collections:
- arista.avd
- arista.cvp
tasks:
- name: 'create cvp structure config folder: {{documentation_dir_name}}'
tags: [build, generate]
file:
path: '{{playbook_dir}}/intended/structured_configs/cvp/'
state: directory
mode: 0755
delegate_to: localhost
- name: 'reset local folders for output'
tags: [build, generate]
import_role:
name: arista.avd.build_output_folders
- name: 'create cvp structure config folder: {{documentation_dir_name}}'
tags: [build, generate]
file:
path: '{{playbook_dir}}/intended/structured_configs/cvp/'
state: directory
mode: 0755
delegate_to: localhost
- name: generate intended variables
tags: [build, generate]
import_role:
name: arista.avd.eos_l3ls_evpn
- name: generate device intended config and documentation
tags: [build, generate]
import_role:
name: eos_cli_config_gen
- name: Configuration deployment with CVP
hosts: cv_server
connection: local
gather_facts: false
collections:
- arista.avd
- arista.cvp
tasks:
- name: run CVP provisioning
import_role:
name: arista.avd.eos_config_deploy_cvp
vars:
container_root: 'DC1_FABRIC'
configlets_prefix: 'DC1-AVD'
device_filter: 'DC1'
state: present