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:
Dag Wieers 2018-08-08 23:24:50 +02:00 committed by GitHub
commit 014fca8ca5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 281 additions and 21 deletions

View file

@ -77,44 +77,47 @@ EXAMPLES = r'''
host: apic
username: admin
password: SomeSecretPassword
state: present
export_policy: config_backup
state: present
delegate_to: localhost
- name: Query Existing Snapshots
aci_config_snapshot:
host: apic
username: admin
password: SomeSecretPassword
state: query
export_policy: config_backup
state: query
delegate_to: localhost
- name: Compare Snapshot Files
aci_config_rollback:
host: apic
username: admin
password: SomeSecretPassword
state: preview
export_policy: config_backup
snapshot: run-2017-08-28T06-24-01
compare_export_policy: config_backup
compare_snapshot: run-2017-08-27T23-43-56
state: preview
delegate_to: localhost
- name: Rollback Configuration
aci_config_rollback:
host: apic
username: admin
password: SomeSecretPassword
state: rollback
import_policy: rollback_config
export_policy: config_backup
snapshot: run-2017-08-28T06-24-01
state: rollback
delegate_to: localhost
- name: Rollback Configuration
aci_config_rollback:
host: apic
username: admin
password: SomeSecretPassword
state: rollback
import_policy: rollback_config
export_policy: config_backup
snapshot: run-2017-08-28T06-24-01
@ -122,6 +125,8 @@ EXAMPLES = r'''
import_mode: atomic
import_type: replace
fail_on_decrypt: yes
state: rollback
delegate_to: localhost
'''
RETURN = r'''