-
Notifications
You must be signed in to change notification settings - Fork 0
/
aci-lighspeed-demo copy.yml
51 lines (45 loc) · 1.32 KB
/
aci-lighspeed-demo copy.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
---
- name: Cisco ACI Ansible
hosts: routers
gather_facts: false
tasks:
# Create tenant
- name: Create tenant
cisco.aci.aci_tenant:
host: "{{ _host_ }}"
username: "{{ _username_ }}"
password: "{{ _password_ }}"
validate_certs: "{{ _validate_certs_ }}"
use_ssl: "{{ _use_ssl_ }}"
use_proxy: "{{ _use_proxy_ }}"
output_level: debug
tenant: ansible_test
state: present
register: tenant_present
# create VRF & create BD
- name: Create VRF
cisco.aci.aci_vrf:
host: "{{ _host_ }}"
username: "{{ _username_ }}"
password: "{{ _password_ }}"
validate_certs: "{{ _validate_certs_ }}"
use_ssl: "{{ _use_ssl_ }}"
use_proxy: "{{ _use_proxy_ }}"
output_level: debug
tenant: ansible_test
state: present
vrf: ansible_test
register: vrf_present
- name: Create BD
cisco.aci.aci_bd:
host: "{{ _host_ }}"
username: "{{ _username_ }}"
password: "{{ _password_ }}"
validate_certs: "{{ _validate_certs_ }}"
use_ssl: "{{ _use_ssl_ }}"
use_proxy: "{{ _use_proxy_ }}"
output_level: debug
tenant: ansible_test
state: present
bd: ansible_test
register: bd_present