mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -07:00
ACI: Add missing examples to module docs (#36417)
This PR includes: - A cleanup of documentation examples for ACI modules - A small fix in aci_rest integration test
This commit is contained in:
parent
fb9af72b48
commit
6534e6a450
21 changed files with 566 additions and 135 deletions
|
@ -66,18 +66,42 @@ options:
|
|||
extends_documentation_fragment: aci
|
||||
'''
|
||||
|
||||
# FIXME: Add more, better examples
|
||||
EXAMPLES = r'''
|
||||
- aci_contract:
|
||||
host: '{{ inventory_hostname }}'
|
||||
username: '{{ username }}'
|
||||
password: '{{ password }}'
|
||||
contract: '{{ contract }}'
|
||||
description: '{{ descr }}'
|
||||
tenant: '{{ tenant }}'
|
||||
scope: '{{ scope }}'
|
||||
priority: '{{ priority }}'
|
||||
target: '{{ target }}'
|
||||
- name: Add a new contract
|
||||
aci_contract:
|
||||
host: apic
|
||||
username: admin
|
||||
password: SomeSecretPassword
|
||||
tenant: production
|
||||
contract: web_to_db
|
||||
description: Communication between web-servers and database
|
||||
scope: application-profile
|
||||
state: present
|
||||
|
||||
- name: Remove an existing contract
|
||||
aci_contract:
|
||||
host: apic
|
||||
username: admin
|
||||
password: SomeSecretPassword
|
||||
tenant: production
|
||||
contract: web_to_db
|
||||
state: absent
|
||||
|
||||
- name: Query a specific contract
|
||||
aci_contract:
|
||||
host: apic
|
||||
username: admin
|
||||
password: SomeSecretPassword
|
||||
tenant: production
|
||||
contract: web_to_db
|
||||
state: query
|
||||
|
||||
- name: Query all contracts
|
||||
aci_contract:
|
||||
host: apic
|
||||
username: admin
|
||||
password: SomeSecretPassword
|
||||
state: query
|
||||
'''
|
||||
|
||||
RETURN = r'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue