-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path02_aci_tenant_network_pb.yml
46 lines (43 loc) · 1.29 KB
/
02_aci_tenant_network_pb.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
---
- name: ENSURE APPLICATION CONFIGURATION EXISTS
hosts: apic
connection: local
gather_facts: False
vars_prompt:
- name: "tenant"
prompt: "What would you like to name your Tenant?"
private: no
tasks:
- name: ENSURE TENANT VRF EXISTS
aci_vrf:
host: "{{ ansible_host }}"
username: "{{ username }}"
password: "{{ password }}"
state: "present"
validate_certs: False
tenant: "{{ tenant }}"
vrf: "{{ vrf }}"
description: "VRF Created Using Ansible"
- name: ENSURE TENANT BRIDGE DOMAIN EXISTS
aci_bd:
host: "{{ ansible_host }}"
username: "{{ username }}"
password: "{{ password }}"
state: "present"
validate_certs: False
tenant: "{{ tenant }}"
bd: "{{ bd | default('prod_bd') }}"
vrf: "{{ vrf }}"
description: "BD Created Using Ansible"
- name: ENSURE BRIDGE DOMAIN SUBNET EXISTS
aci_bd_subnet:
host: "{{ ansible_host }}"
username: "{{ username }}"
password: "{{ password }}"
state: "present"
validate_certs: False
tenant: "{{ tenant }}"
bd: "{{ bd | default('prod_bd') }}"
gateway: "10.10.101.1"
mask: 24
description: "Subnet Created Using Ansible"