diff --git a/lib/ansible/modules/network/aci/aci_rest.py b/lib/ansible/modules/network/aci/aci_rest.py index 4c6c958d9c..fda2674c05 100644 --- a/lib/ansible/modules/network/aci/aci_rest.py +++ b/lib/ansible/modules/network/aci/aci_rest.py @@ -74,6 +74,16 @@ EXAMPLES = r''' src: /home/cisco/ansible/aci/configs/aci_config.xml delegate_to: localhost +- name: Add a tenant from a templated payload file from templates/ + aci_rest: + host: apic + username: admin + private_key: pki/admin.key + method: post + path: /api/mo/uni.xml + content: "{{ lookup('template', 'aci/tenant.xml.j2') }}" + delegate_to: localhost + - name: Add a tenant using inline YAML aci_rest: host: apic