mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
Fix all ACI examples to use delegate_to (#43439)
This is to avoid users connecting to the APIC using SSH, which is likely to fail. In the ACI documentation (linked from every module) we go into more details on how people are supposed to work with the modules..
This commit is contained in:
parent
54e4c53f00
commit
014fca8ca5
53 changed files with 281 additions and 21 deletions
|
@ -74,6 +74,7 @@ EXAMPLES = r'''
|
|||
export_policy: config_backup
|
||||
max_count: 10
|
||||
description: Backups taken before new configs are applied.
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Query all Snapshots
|
||||
aci_config_snapshot:
|
||||
|
@ -81,23 +82,28 @@ EXAMPLES = r'''
|
|||
username: admin
|
||||
password: SomeSecretPassword
|
||||
state: query
|
||||
delegate_to: localhost
|
||||
register: query_result
|
||||
|
||||
- name: Query Snapshots associated with a particular Export Policy
|
||||
aci_config_snapshot:
|
||||
host: apic
|
||||
username: admin
|
||||
password: SomeSecretPassword
|
||||
state: query
|
||||
export_policy: config_backup
|
||||
state: query
|
||||
delegate_to: localhost
|
||||
register: query_result
|
||||
|
||||
- name: Delete a Snapshot
|
||||
aci_config_snapshot:
|
||||
host: apic
|
||||
username: admin
|
||||
password: SomeSecretPassword
|
||||
state: absent
|
||||
export_policy: config_backup
|
||||
snapshot: run-2017-08-24T17-20-05
|
||||
state: absent
|
||||
delegate_to: localhost
|
||||
'''
|
||||
|
||||
RETURN = r'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue