mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
Added an example using a templated payload file
<!--- Your description here --> +label: docsite_pr
This commit is contained in:
parent
16cf51926d
commit
3973eb4c30
1 changed files with 10 additions and 0 deletions
|
@ -74,6 +74,16 @@ EXAMPLES = r'''
|
||||||
src: /home/cisco/ansible/aci/configs/aci_config.xml
|
src: /home/cisco/ansible/aci/configs/aci_config.xml
|
||||||
delegate_to: localhost
|
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
|
- name: Add a tenant using inline YAML
|
||||||
aci_rest:
|
aci_rest:
|
||||||
host: apic
|
host: apic
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue