-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path4_config_common_infra.yml
45 lines (44 loc) · 1.47 KB
/
4_config_common_infra.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
# Author Remo Mattei
# Email: [email protected]
---
- hosts: localhost
gather_facts: no
connection: local
tasks:
- name: Configure Networks, VRFs
no_log: True
import_role:
name: avinetworks.aviconfig
vars:
avi_config:
network:
- name: '{{ vcenter.network_mgmt }}'
cloud_ref: "{{'/api/cloud?name='+ vcenter.AviCloudName }}"
dhcp_enabled: False
exclude_discovered_subnets: True
configured_subnets:
- prefix:
mask: '{{ vcenter.network_subnet_mask }}'
ip_addr:
type: V4
addr: '{{ vcenter.network_subnet }}'
static_ranges:
- begin:
type: V4
addr: '{{ vcenter.mgmt_start_addr }}'
end:
type: V4
addr: '{{ vcenter.mgmt_end_addr }}'
vrfcontext:
- name: management
cloud_ref: "{{'/api/cloud?name='+ vcenter.AviCloudName }}"
static_routes:
- route_id: '1'
prefix:
mask: 0
ip_addr:
type: V4
addr: 0.0.0.0
next_hop:
type: V4
addr: '{{ vcenter.mgmt_dgw }}'