forked from derwarre/aci-ansible
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaci_rest.yml
More file actions
16 lines (12 loc) · 711 Bytes
/
aci_rest.yml
File metadata and controls
16 lines (12 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: playbook for aci testing
hosts: apic
connection: local
gather_facts: no
tasks:
- name: add a tenant
aci_rest: action=post uri=/api/mo/uni.xml config_file=/home/swetha/ansible/aci-ansible/configs/aci_config.xml host={{ inventory_hostname }} username={{ user }} password={{ pass }}
- name: get tenants
aci_rest: action=get uri=/api/node/class/fvTenant.json host={{ inventory_hostname }} username={{ user }} password={{ pass }}
- name: configure contracts
aci_rest: action=post uri=/api/mo/uni.xml config_file=/home/swetha/ansible/aci-ansible/configs/contract_config.xml host={{ inventory_hostname }} username={{ user }} password={{ pass }}