1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Dag Wieers 2018-08-08 23:24:50 +02:00 committed by GitHub
parent 54e4c53f00
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

@ -101,6 +101,7 @@ EXAMPLES = r'''
first_name: Dag first_name: Dag
last_name: Wieers last_name: Wieers
state: present state: present
delegate_to: localhost
- name: Remove a user - name: Remove a user
aci_aaa_user: aci_aaa_user:
@ -109,6 +110,7 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
aaa_user: dag aaa_user: dag
state: absent state: absent
delegate_to: localhost
- name: Query a user - name: Query a user
aci_aaa_user: aci_aaa_user:
@ -117,6 +119,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
aaa_user: dag aaa_user: dag
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all users - name: Query all users
aci_aaa_user: aci_aaa_user:
@ -124,6 +128,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -62,6 +62,7 @@ EXAMPLES = r'''
certificate_name: admin certificate_name: admin
certificate_data: '{{ lookup("file", "pki/admin.crt") }}' certificate_data: '{{ lookup("file", "pki/admin.crt") }}'
state: present state: present
delegate_to: localhost
- name: Remove a certificate of a user - name: Remove a certificate of a user
aci_aaa_user_certificate: aci_aaa_user_certificate:
@ -71,6 +72,7 @@ EXAMPLES = r'''
aaa_user: admin aaa_user: admin
certificate_name: admin certificate_name: admin
state: absent state: absent
delegate_to: localhost
- name: Query a certificate of a user - name: Query a certificate of a user
aci_aaa_user_certificate: aci_aaa_user_certificate:
@ -80,6 +82,8 @@ EXAMPLES = r'''
aaa_user: admin aaa_user: admin
certificate_name: admin certificate_name: admin
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all certificates of a user - name: Query all certificates of a user
aci_aaa_user_certificate: aci_aaa_user_certificate:
@ -88,6 +92,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
aaa_user: admin aaa_user: admin
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -97,6 +97,7 @@ EXAMPLES = r'''
toi_port: 16 toi_port: 16
policy_group: policygroupname policy_group: policygroupname
state: present state: present
delegate_to: localhost
- name: Associate an interface access port selector to an Interface Policy Leaf Profile (w/o policy group) (check if this works) - name: Associate an interface access port selector to an Interface Policy Leaf Profile (w/o policy group) (check if this works)
aci_access_port_to_interface_policy_leaf_profile: aci_access_port_to_interface_policy_leaf_profile:
@ -109,6 +110,7 @@ EXAMPLES = r'''
from_port: 13 from_port: 13
to_port: 16 to_port: 16
state: present state: present
delegate_to: localhost
- name: Remove an interface access port selector associated with an Interface Policy Leaf Profile - name: Remove an interface access port selector associated with an Interface Policy Leaf Profile
aci_access_port_to_interface_policy_leaf_profile: aci_access_port_to_interface_policy_leaf_profile:
@ -118,6 +120,7 @@ EXAMPLES = r'''
leaf_interface_profile: leafintprfname leaf_interface_profile: leafintprfname
access_port_selector: accessportselectorname access_port_selector: accessportselectorname
state: absent state: absent
delegate_to: localhost
- name: Query Specific access_port_selector under given leaf_interface_profile - name: Query Specific access_port_selector under given leaf_interface_profile
aci_access_port_to_interface_policy_leaf_profile: aci_access_port_to_interface_policy_leaf_profile:
@ -127,6 +130,8 @@ EXAMPLES = r'''
leaf_interface_profile: leafintprfname leaf_interface_profile: leafintprfname
access_port_selector: accessportselectorname access_port_selector: accessportselectorname
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -60,6 +60,7 @@ EXAMPLES = r'''
aep: ACI-AEP aep: ACI-AEP
description: default description: default
state: present state: present
delegate_to: localhost
- name: Remove an existing AEP - name: Remove an existing AEP
aci_aep: aci_aep:
@ -68,6 +69,7 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
aep: ACI-AEP aep: ACI-AEP
state: absent state: absent
delegate_to: localhost
- name: Query all AEPs - name: Query all AEPs
aci_aep: aci_aep:
@ -75,6 +77,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
- name: Query a specific AEP - name: Query a specific AEP
aci_aep: aci_aep:
@ -83,6 +87,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
aep: ACI-AEP aep: ACI-AEP
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -64,6 +64,7 @@ EXAMPLES = r'''
domain: phys_dom domain: phys_dom
domain_type: phys domain_type: phys
state: present state: present
delegate_to: localhost
- name: Remove AEP to domain binding - name: Remove AEP to domain binding
aci_aep_to_domain: &binding_absent aci_aep_to_domain: &binding_absent
@ -74,6 +75,7 @@ EXAMPLES = r'''
domain: phys_dom domain: phys_dom
domain_type: phys domain_type: phys
state: absent state: absent
delegate_to: localhost
- name: Query our AEP to domain binding - name: Query our AEP to domain binding
aci_aep_to_domain: aci_aep_to_domain:
@ -84,6 +86,8 @@ EXAMPLES = r'''
domain: phys_dom domain: phys_dom
domain_type: phys domain_type: phys
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all AEP to domain bindings - name: Query all AEP to domain bindings
aci_aep_to_domain: &binding_query aci_aep_to_domain: &binding_query
@ -91,6 +95,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -59,6 +59,7 @@ EXAMPLES = r'''
ap: default ap: default
description: default ap description: default ap
state: present state: present
delegate_to: localhost
- name: Remove an AP - name: Remove an AP
aci_ap: aci_ap:
@ -68,6 +69,7 @@ EXAMPLES = r'''
tenant: production tenant: production
ap: default ap: default
state: absent state: absent
delegate_to: localhost
- name: Query an AP - name: Query an AP
aci_ap: aci_ap:
@ -77,6 +79,8 @@ EXAMPLES = r'''
tenant: production tenant: production
ap: default ap: default
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all APs - name: Query all APs
aci_ap: aci_ap:
@ -84,6 +88,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -135,11 +135,12 @@ EXAMPLES = r'''
username: "{{ username }}" username: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
validate_certs: no validate_certs: no
state: present
tenant: prod tenant: prod
bd: web_servers bd: web_servers
mac_address: 00:22:BD:F8:19:FE mac_address: 00:22:BD:F8:19:FE
vrf: prod_vrf vrf: prod_vrf
state: present
delegate_to: localhost
- name: Add an FC Bridge Domain - name: Add an FC Bridge Domain
aci_bd: aci_bd:
@ -147,12 +148,13 @@ EXAMPLES = r'''
username: "{{ username }}" username: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
validate_certs: no validate_certs: no
state: present
tenant: prod tenant: prod
bd: storage bd: storage
bd_type: fc bd_type: fc
vrf: fc_vrf vrf: fc_vrf
enable_routing: no enable_routing: no
state: present
delegate_to: localhost
- name: Modify a Bridge Domain - name: Modify a Bridge Domain
aci_bd: aci_bd:
@ -160,11 +162,12 @@ EXAMPLES = r'''
username: "{{ username }}" username: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
validate_certs: yes validate_certs: yes
state: present
tenant: prod tenant: prod
bd: web_servers bd: web_servers
arp_flooding: yes arp_flooding: yes
l2_unknown_unicast: flood l2_unknown_unicast: flood
state: present
delegate_to: localhost
- name: Query All Bridge Domains - name: Query All Bridge Domains
aci_bd: aci_bd:
@ -173,6 +176,8 @@ EXAMPLES = r'''
password: "{{ password }}" password: "{{ password }}"
validate_certs: yes validate_certs: yes
state: query state: query
delegate_to: localhost
register: query_result
- name: Query a Bridge Domain - name: Query a Bridge Domain
aci_bd: aci_bd:
@ -180,9 +185,11 @@ EXAMPLES = r'''
username: "{{ username }}" username: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
validate_certs: yes validate_certs: yes
state: query
tenant: prod tenant: prod
bd: web_servers bd: web_servers
state: query
delegate_to: localhost
register: query_result
- name: Delete a Bridge Domain - name: Delete a Bridge Domain
aci_bd: aci_bd:
@ -190,9 +197,10 @@ EXAMPLES = r'''
username: "{{ username }}" username: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
validate_certs: yes validate_certs: yes
state: absent
tenant: prod tenant: prod
bd: web_servers bd: web_servers
state: absent
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -113,6 +113,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
tenant: production tenant: production
state: present
delegate_to: localhost
- name: Create a bridge domain - name: Create a bridge domain
aci_bd: aci_bd:
@ -121,6 +123,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
tenant: production tenant: production
bd: database bd: database
state: present
delegate_to: localhost
- name: Create a subnet - name: Create a subnet
aci_bd_subnet: aci_bd_subnet:
@ -131,6 +135,8 @@ EXAMPLES = r'''
bd: database bd: database
gateway: 10.1.1.1 gateway: 10.1.1.1
mask: 24 mask: 24
state: present
delegate_to: localhost
- name: Create a subnet with options - name: Create a subnet with options
aci_bd_subnet: aci_bd_subnet:
@ -146,6 +152,8 @@ EXAMPLES = r'''
scope: public scope: public
route_profile_l3_out: corp route_profile_l3_out: corp
route_profile: corp_route_profile route_profile: corp_route_profile
state: present
delegate_to: localhost
- name: Update a subnets scope to private and shared - name: Update a subnets scope to private and shared
aci_bd_subnet: aci_bd_subnet:
@ -157,6 +165,8 @@ EXAMPLES = r'''
gateway: 10.1.1.1 gateway: 10.1.1.1
mask: 24 mask: 24
scope: [private, shared] scope: [private, shared]
state: present
delegate_to: localhost
- name: Get all subnets - name: Get all subnets
aci_bd_subnet: aci_bd_subnet:
@ -164,38 +174,44 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
- name: Get all subnets of specific gateway in specified tenant - name: Get all subnets of specific gateway in specified tenant
aci_bd_subnet: aci_bd_subnet:
host: apic host: apic
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query
tenant: production tenant: production
gateway: 10.1.1.1 gateway: 10.1.1.1
mask: 24 mask: 24
state: query
delegate_to: localhost
register: query_result
- name: Get specific subnet - name: Get specific subnet
aci_bd_subnet: aci_bd_subnet:
host: apic host: apic
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query
tenant: production tenant: production
bd: database bd: database
gateway: 10.1.1.1 gateway: 10.1.1.1
mask: 24 mask: 24
state: query
delegate_to: localhost
register: query_result
- name: Delete a subnet - name: Delete a subnet
aci_bd_subnet: aci_bd_subnet:
host: apic host: apic
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: absent
tenant: production tenant: production
bd: database bd: database
gateway: 10.1.1.1 gateway: 10.1.1.1
mask: 24 mask: 24
state: absent
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

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

View file

@ -74,6 +74,7 @@ EXAMPLES = r'''
export_policy: config_backup export_policy: config_backup
max_count: 10 max_count: 10
description: Backups taken before new configs are applied. description: Backups taken before new configs are applied.
delegate_to: localhost
- name: Query all Snapshots - name: Query all Snapshots
aci_config_snapshot: aci_config_snapshot:
@ -81,23 +82,28 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
- name: Query Snapshots associated with a particular Export Policy - name: Query Snapshots associated with a particular Export Policy
aci_config_snapshot: aci_config_snapshot:
host: apic host: apic
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query
export_policy: config_backup export_policy: config_backup
state: query
delegate_to: localhost
register: query_result
- name: Delete a Snapshot - name: Delete a Snapshot
aci_config_snapshot: aci_config_snapshot:
host: apic host: apic
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: absent
export_policy: config_backup export_policy: config_backup
snapshot: run-2017-08-24T17-20-05 snapshot: run-2017-08-24T17-20-05
state: absent
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -77,6 +77,7 @@ EXAMPLES = r'''
description: Communication between web-servers and database description: Communication between web-servers and database
scope: application-profile scope: application-profile
state: present state: present
delegate_to: localhost
- name: Remove an existing contract - name: Remove an existing contract
aci_contract: aci_contract:
@ -86,6 +87,7 @@ EXAMPLES = r'''
tenant: production tenant: production
contract: web_to_db contract: web_to_db
state: absent state: absent
delegate_to: localhost
- name: Query a specific contract - name: Query a specific contract
aci_contract: aci_contract:
@ -95,6 +97,8 @@ EXAMPLES = r'''
tenant: production tenant: production
contract: web_to_db contract: web_to_db
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all contracts - name: Query all contracts
aci_contract: aci_contract:
@ -102,6 +106,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -92,6 +92,7 @@ EXAMPLES = r'''
priority: level1 priority: level1
dscp: unspecified dscp: unspecified
state: present state: present
register: query_result
- name: Remove a contract subject - name: Remove a contract subject
aci_contract_subject: aci_contract_subject:
@ -102,6 +103,7 @@ EXAMPLES = r'''
contract: web_to_db contract: web_to_db
subject: default subject: default
state: absent state: absent
delegate_to: localhost
- name: Query a contract subject - name: Query a contract subject
aci_contract_subject: aci_contract_subject:
@ -112,6 +114,8 @@ EXAMPLES = r'''
contract: web_to_db contract: web_to_db
subject: default subject: default
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all contract subjects - name: Query all contract subjects
aci_contract_subject: aci_contract_subject:
@ -119,6 +123,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -69,6 +69,7 @@ EXAMPLES = r'''
filter: '{{ filter }}' filter: '{{ filter }}'
log: '{{ log }}' log: '{{ log }}'
state: present state: present
delegate_to: localhost
- name: Remove an existing contract subject to filter binding - name: Remove an existing contract subject to filter binding
aci_contract_subject_to_filter: aci_contract_subject_to_filter:
@ -81,6 +82,7 @@ EXAMPLES = r'''
filter: '{{ filter }}' filter: '{{ filter }}'
log: '{{ log }}' log: '{{ log }}'
state: present state: present
delegate_to: localhost
- name: Query a specific contract subject to filter binding - name: Query a specific contract subject to filter binding
aci_contract_subject_to_filter: aci_contract_subject_to_filter:
@ -92,6 +94,8 @@ EXAMPLES = r'''
subject: test subject: test
filter: '{{ filter }}' filter: '{{ filter }}'
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all contract subject to filter bindings - name: Query all contract subject to filter bindings
aci_contract_subject_to_filter: aci_contract_subject_to_filter:
@ -102,6 +106,8 @@ EXAMPLES = r'''
contract: web_to_db contract: web_to_db
subject: test subject: test
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -99,6 +99,7 @@ EXAMPLES = r'''
domain_type: vmm domain_type: vmm
vm_provider: microsoft vm_provider: microsoft
state: present state: present
delegate_to: localhost
- name: Remove a VMM domain - name: Remove a VMM domain
aci_domain: aci_domain:
@ -109,6 +110,7 @@ EXAMPLES = r'''
domain_type: vmm domain_type: vmm
vm_provider: microsoft vm_provider: microsoft
state: absent state: absent
delegate_to: localhost
- name: Query a specific physical domain - name: Query a specific physical domain
aci_domain: aci_domain:
@ -118,6 +120,8 @@ EXAMPLES = r'''
domain: phys_dom domain: phys_dom
domain_type: phys domain_type: phys
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all domains - name: Query all domains
aci_domain: aci_domain:
@ -126,6 +130,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
domain_type: phys domain_type: phys
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -76,6 +76,7 @@ EXAMPLES = r'''
pool_type: vlan pool_type: vlan
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
state: present state: present
delegate_to: localhost
- name: Remove domain to VLAN pool binding - name: Remove domain to VLAN pool binding
aci_domain_to_encap_pool: aci_domain_to_encap_pool:
@ -88,6 +89,7 @@ EXAMPLES = r'''
pool_type: vlan pool_type: vlan
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
state: absent state: absent
delegate_to: localhost
- name: Query our domain to VLAN pool binding - name: Query our domain to VLAN pool binding
aci_domain_to_encap_pool: aci_domain_to_encap_pool:
@ -99,6 +101,8 @@ EXAMPLES = r'''
pool_type: vlan pool_type: vlan
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all domain to VLAN pool bindings - name: Query all domain to VLAN pool bindings
aci_domain_to_encap_pool: aci_domain_to_encap_pool:
@ -109,6 +113,8 @@ EXAMPLES = r'''
pool_type: vlan pool_type: vlan
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -71,6 +71,7 @@ EXAMPLES = r'''
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
vm_provider: vmware vm_provider: vmware
state: present state: present
delegate_to: localhost
- name: Remove a VMM domain to VLAN pool binding - name: Remove a VMM domain to VLAN pool binding
aci_domain_to_vlan_pool: aci_domain_to_vlan_pool:
@ -83,6 +84,7 @@ EXAMPLES = r'''
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
vm_provider: vmware vm_provider: vmware
state: absent state: absent
delegate_to: localhost
- name: Bind a physical domain to VLAN pool - name: Bind a physical domain to VLAN pool
aci_domain_to_vlan_pool: aci_domain_to_vlan_pool:
@ -94,6 +96,7 @@ EXAMPLES = r'''
pool: phys_pool pool: phys_pool
pool_allocation_mode: static pool_allocation_mode: static
state: present state: present
delegate_to: localhost
- name: Bind a physical domain to VLAN pool - name: Bind a physical domain to VLAN pool
aci_domain_to_vlan_pool: aci_domain_to_vlan_pool:
@ -105,6 +108,7 @@ EXAMPLES = r'''
pool: phys_pool pool: phys_pool
pool_allocation_mode: static pool_allocation_mode: static
state: absent state: absent
delegate_to: localhost
- name: Query an domain to VLAN pool binding - name: Query an domain to VLAN pool binding
aci_domain_to_vlan_pool: aci_domain_to_vlan_pool:
@ -116,6 +120,8 @@ EXAMPLES = r'''
pool: phys_pool pool: phys_pool
pool_allocation_mode: static pool_allocation_mode: static
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all domain to VLAN pool bindings - name: Query all domain to VLAN pool bindings
aci_domain_to_vlan_pool: aci_domain_to_vlan_pool:
@ -124,6 +130,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
domain_type: phys domain_type: phys
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -62,6 +62,7 @@ EXAMPLES = r'''
pool_type: vlan pool_type: vlan
description: Production VLANs description: Production VLANs
state: present state: present
delegate_to: localhost
- name: Remove a vlan pool - name: Remove a vlan pool
aci_encap_pool: aci_encap_pool:
@ -71,6 +72,7 @@ EXAMPLES = r'''
pool: production pool: production
pool_type: vlan pool_type: vlan
state: absent state: absent
delegate_to: localhost
- name: Query a vlan pool - name: Query a vlan pool
aci_encap_pool: aci_encap_pool:
@ -80,6 +82,8 @@ EXAMPLES = r'''
pool: production pool: production
pool_type: vlan pool_type: vlan
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all vlan pools - name: Query all vlan pools
aci_encap_pool: aci_encap_pool:
@ -88,6 +92,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
pool_type: vlan pool_type: vlan
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -74,7 +74,7 @@ extends_documentation_fragment: aci
''' '''
EXAMPLES = r''' EXAMPLES = r'''
- name: Add a new vlan range - name: Add a new VLAN range
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
host: apic host: apic
username: admin username: admin
@ -84,8 +84,9 @@ EXAMPLES = r'''
encap_start: 20 encap_start: 20
encap_end: 50 encap_end: 50
state: present state: present
delegate_to: localhost
- name: Remove a vlan range - name: Remove a VLAN range
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
host: apic host: apic
username: admin username: admin
@ -95,8 +96,9 @@ EXAMPLES = r'''
encap_start: 20 encap_start: 20
encap_end: 50 encap_end: 50
state: absent state: absent
delegate_to: localhost
- name: Query a vlan range - name: Query a VLAN range
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
host: apic host: apic
username: admin username: admin
@ -106,8 +108,10 @@ EXAMPLES = r'''
encap_start: 20 encap_start: 20
encap_end: 50 encap_end: 50
state: query state: query
delegate_to: localhost
register: query_result
- name: Query a vlan pool for ranges - name: Query a VLAN pool for ranges
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
host: apic host: apic
username: admin username: admin
@ -115,14 +119,18 @@ EXAMPLES = r'''
pool: production pool: production
pool_type: vlan pool_type: vlan
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all vlan ranges - name: Query all VLAN ranges
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
host: apic host: apic
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
pool_type: vlan pool_type: vlan
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -91,6 +91,8 @@ EXAMPLES = r'''
description: Web Intranet EPG description: Web Intranet EPG
bd: prod_bd bd: prod_bd
preferred_group: yes preferred_group: yes
state: present
delegate_to: localhost
- aci_epg: - aci_epg:
host: apic host: apic
@ -104,6 +106,7 @@ EXAMPLES = r'''
priority: unspecified priority: unspecified
intra_epg_isolation: unenforced intra_epg_isolation: unenforced
state: present state: present
delegate_to: localhost
with_items: with_items:
- epg: web - epg: web
bd: web_bd bd: web_bd
@ -120,6 +123,7 @@ EXAMPLES = r'''
app_profile: intranet app_profile: intranet
epg: web_epg epg: web_epg
state: absent state: absent
delegate_to: localhost
- name: Query an EPG - name: Query an EPG
aci_epg: aci_epg:
@ -130,6 +134,8 @@ EXAMPLES = r'''
ap: ticketing ap: ticketing
epg: web_epg epg: web_epg
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all EPGs - name: Query all EPGs
aci_epg: aci_epg:
@ -137,6 +143,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all EPGs with a Specific Name - name: Query all EPGs with a Specific Name
aci_epg: aci_epg:
@ -146,6 +154,8 @@ EXAMPLES = r'''
validate_certs: no validate_certs: no
epg: web_epg epg: web_epg
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all EPGs of an App Profile - name: Query all EPGs of an App Profile
aci_epg: aci_epg:
@ -155,6 +165,8 @@ EXAMPLES = r'''
validate_certs: no validate_certs: no
ap: ticketing ap: ticketing
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -57,6 +57,7 @@ EXAMPLES = r'''
monitoring_policy: '{{ monitoring_policy }}' monitoring_policy: '{{ monitoring_policy }}'
description: '{{ description }}' description: '{{ description }}'
tenant: '{{ tenant }}' tenant: '{{ tenant }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -77,6 +77,7 @@ EXAMPLES = r'''
contract: anstest_http contract: anstest_http
contract_type: provider contract_type: provider
state: present state: present
delegate_to: localhost
- name: Remove an existing contract to EPG binding - name: Remove an existing contract to EPG binding
aci_epg_to_contract: aci_epg_to_contract:
@ -89,6 +90,7 @@ EXAMPLES = r'''
contract: anstest_http contract: anstest_http
contract_type: provider contract_type: provider
state: absent state: absent
delegate_to: localhost
- name: Query a specific contract to EPG binding - name: Query a specific contract to EPG binding
aci_epg_to_contract: aci_epg_to_contract:
@ -101,6 +103,8 @@ EXAMPLES = r'''
contract: anstest_http contract: anstest_http
contract_type: provider contract_type: provider
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all provider contract to EPG bindings - name: Query all provider contract to EPG bindings
aci_epg_to_contract: aci_epg_to_contract:
@ -109,6 +113,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
contract_type: provider contract_type: provider
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -112,6 +112,7 @@ EXAMPLES = r'''
domain: anstest domain: anstest
domain_type: phys domain_type: phys
state: present state: present
delegate_to: localhost
- name: Remove an existing physical domain to EPG binding - name: Remove an existing physical domain to EPG binding
aci_epg_to_domain: aci_epg_to_domain:
@ -124,6 +125,7 @@ EXAMPLES = r'''
domain: anstest domain: anstest
domain_type: phys domain_type: phys
state: absent state: absent
delegate_to: localhost
- name: Query a specific physical domain to EPG binding - name: Query a specific physical domain to EPG binding
aci_epg_to_domain: aci_epg_to_domain:
@ -136,6 +138,8 @@ EXAMPLES = r'''
domain: anstest domain: anstest
domain_type: phys domain_type: phys
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all domain to EPG bindings - name: Query all domain to EPG bindings
aci_epg_to_domain: aci_epg_to_domain:
@ -143,6 +147,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -68,6 +68,7 @@ EXAMPLES = r'''
node_id: 1011 node_id: 1011
switch: fab4-sw1011 switch: fab4-sw1011
state: present state: present
delegate_to: localhost
- name: Remove fabric node - name: Remove fabric node
aci_fabric_node: aci_fabric_node:
@ -77,6 +78,7 @@ EXAMPLES = r'''
serial: FDO2031124L serial: FDO2031124L
node_id: 1011 node_id: 1011
state: absent state: absent
delegate_to: localhost
- name: Query fabric nodes - name: Query fabric nodes
aci_fabric_node: aci_fabric_node:
@ -84,6 +86,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -59,6 +59,7 @@ EXAMPLES = r'''
description: Filter for web protocols description: Filter for web protocols
tenant: production tenant: production
state: present state: present
delegate_to: localhost
- name: Remove a filter for a tenant - name: Remove a filter for a tenant
aci_filter: aci_filter:
@ -68,6 +69,7 @@ EXAMPLES = r'''
filter: web_filter filter: web_filter
tenant: production tenant: production
state: absent state: absent
delegate_to: localhost
- name: Query a filter of a tenant - name: Query a filter of a tenant
aci_filter: aci_filter:
@ -77,6 +79,8 @@ EXAMPLES = r'''
filter: web_filter filter: web_filter
tenant: production tenant: production
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all filters for a tenant - name: Query all filters for a tenant
aci_filter: aci_filter:
@ -85,6 +89,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
tenant: production tenant: production
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -105,6 +105,7 @@ EXAMPLES = r'''
icmp_msg_type: "{{ icmp_msg_type }}" icmp_msg_type: "{{ icmp_msg_type }}"
filter: "{{ filter }}" filter: "{{ filter }}"
descr: "{{ descr }}" descr: "{{ descr }}"
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -67,6 +67,7 @@ EXAMPLES = r'''
url: foo.bar.cisco.com/download/cisco/aci/aci-msft-pkg-3.1.1i.zip url: foo.bar.cisco.com/download/cisco/aci/aci-msft-pkg-3.1.1i.zip
url_protocol: http url_protocol: http
state: present state: present
delegate_to: localhost
- name: Remove firmware source - name: Remove firmware source
aci_firmware_source: aci_firmware_source:
@ -75,6 +76,7 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
source: aci-msft-pkg-3.1.1i.zip source: aci-msft-pkg-3.1.1i.zip
state: absent state: absent
delegate_to: localhost
- name: Query a specific firmware source - name: Query a specific firmware source
aci_firmware_source: aci_firmware_source:
@ -83,6 +85,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
source: aci-msft-pkg-3.1.1i.zip source: aci-msft-pkg-3.1.1i.zip
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all firmware sources - name: Query all firmware sources
aci_firmware_source: aci_firmware_source:
@ -90,6 +94,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -55,6 +55,7 @@ EXAMPLES = r'''
port_mode: '{{ port_mode }}' port_mode: '{{ port_mode }}'
description: '{{ description }}' description: '{{ description }}'
state: present state: present
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -64,6 +64,7 @@ EXAMPLES = r'''
l2_policy: '{{ l2_policy }}' l2_policy: '{{ l2_policy }}'
vlan_scope: '{{ vlan_policy }}' vlan_scope: '{{ vlan_policy }}'
description: '{{ description }}' description: '{{ description }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -116,7 +116,6 @@ options:
extends_documentation_fragment: aci extends_documentation_fragment: aci
''' '''
# FIXME: Add query examples
EXAMPLES = r''' EXAMPLES = r'''
- name: Create a Port Channel (PC) Interface Policy Group - name: Create a Port Channel (PC) Interface Policy Group
aci_interface_policy_leaf_policy_group: aci_interface_policy_leaf_policy_group:
@ -129,6 +128,7 @@ EXAMPLES = r'''
link_level_policy: whateverlinklevelpolicy link_level_policy: whateverlinklevelpolicy
fibre_channel_interface_policy: whateverfcpolicy fibre_channel_interface_policy: whateverfcpolicy
state: present state: present
delegate_to: localhost
- name: Create a Virtual Port Channel (VPC) Interface Policy Group (no description) - name: Create a Virtual Port Channel (VPC) Interface Policy Group (no description)
aci_interface_policy_leaf_policy_group: aci_interface_policy_leaf_policy_group:
@ -140,6 +140,7 @@ EXAMPLES = r'''
link_level_policy: whateverlinklevelpolicy link_level_policy: whateverlinklevelpolicy
fibre_channel_interface_policy: whateverfcpolicy fibre_channel_interface_policy: whateverfcpolicy
state: present state: present
delegate_to: localhost
- name: Create a Leaf Access Port Policy Group (no description) - name: Create a Leaf Access Port Policy Group (no description)
aci_interface_policy_leaf_policy_group: aci_interface_policy_leaf_policy_group:
@ -151,6 +152,7 @@ EXAMPLES = r'''
link_level_policy: whateverlinklevelpolicy link_level_policy: whateverlinklevelpolicy
fibre_channel_interface_policy: whateverfcpolicy fibre_channel_interface_policy: whateverfcpolicy
state: present state: present
delegate_to: localhost
- name: Query all Leaf Access Port Policy Groups of type link - name: Query all Leaf Access Port Policy Groups of type link
aci_interface_policy_leaf_policy_group: aci_interface_policy_leaf_policy_group:
@ -159,6 +161,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
lag_type: link lag_type: link
state: query state: query
delegate_to: localhost
register: query_result
- name: Query a specific Lead Access Port Policy Group - name: Query a specific Lead Access Port Policy Group
aci_interface_policy_leaf_policy_group: aci_interface_policy_leaf_policy_group:
@ -168,6 +172,8 @@ EXAMPLES = r'''
lag_type: leaf lag_type: leaf
policy_group: policygroupname policy_group: policygroupname
state: query state: query
delegate_to: localhost
register: query_result
- name: Delete an Interface policy Leaf Policy Group - name: Delete an Interface policy Leaf Policy Group
aci_interface_policy_leaf_policy_group: aci_interface_policy_leaf_policy_group:
@ -177,6 +183,7 @@ EXAMPLES = r'''
lag_type: type_name lag_type: type_name
policy_group: policygroupname policy_group: policygroupname
state: absent state: absent
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -51,6 +51,7 @@ EXAMPLES = r'''
leaf_interface_profile: leafintprfname leaf_interface_profile: leafintprfname
description: leafintprfname description description: leafintprfname description
state: present state: present
delegate_to: localhost
- name: Remove a leaf_interface_profile - name: Remove a leaf_interface_profile
aci_interface_policy_leaf_profile: aci_interface_policy_leaf_profile:
@ -59,6 +60,7 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
leaf_interface_profile: leafintprfname leaf_interface_profile: leafintprfname
state: absent state: absent
delegate_to: localhost
- name: Remove all leaf_interface_profiles - name: Remove all leaf_interface_profiles
aci_interface_policy_leaf_profile: aci_interface_policy_leaf_profile:
@ -66,6 +68,7 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: absent state: absent
delegate_to: localhost
- name: Query a leaf_interface_profile - name: Query a leaf_interface_profile
aci_interface_policy_leaf_profile: aci_interface_policy_leaf_profile:
@ -74,6 +77,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
leaf_interface_profile: leafintprfname leaf_interface_profile: leafintprfname
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -61,6 +61,7 @@ EXAMPLES = r'''
description: '{{ description }}' description: '{{ description }}'
receive_state: '{{ receive_state }}' receive_state: '{{ receive_state }}'
transmit_state: '{{ transmit_state }}' transmit_state: '{{ transmit_state }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -55,6 +55,7 @@ EXAMPLES = r'''
mcp: '{{ mcp }}' mcp: '{{ mcp }}'
description: '{{ descr }}' description: '{{ descr }}'
admin_state: '{{ admin_state }}' admin_state: '{{ admin_state }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -139,6 +139,7 @@ EXAMPLES = r'''
tenant: production tenant: production
ospf: ospf1 ospf: ospf1
state: present state: present
delegate_to: localhost
- name: Ensure ospf interface policy does not exist - name: Ensure ospf interface policy does not exist
aci_interface_policy_ospf: aci_interface_policy_ospf:
@ -148,6 +149,7 @@ EXAMPLES = r'''
tenant: production tenant: production
ospf: ospf1 ospf: ospf1
state: present state: present
delegate_to: localhost
- name: Query an ospf interface policy - name: Query an ospf interface policy
aci_interface_policy_ospf: aci_interface_policy_ospf:
@ -157,6 +159,8 @@ EXAMPLES = r'''
tenant: production tenant: production
ospf: ospf1 ospf: ospf1
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all ospf interface policies in tenant production - name: Query all ospf interface policies in tenant production
aci_interface_policy_ospf: aci_interface_policy_ospf:
@ -165,6 +169,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
tenant: production tenant: production
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -104,6 +104,7 @@ EXAMPLES = r'''
min_links: '{{ min_links }}' min_links: '{{ min_links }}'
max_links: '{{ max_links }}' max_links: '{{ max_links }}'
mode: '{{ mode }}' mode: '{{ mode }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -56,6 +56,7 @@ EXAMPLES = r'''
port_security: '{{ port_security }}' port_security: '{{ port_security }}'
description: '{{ descr }}' description: '{{ descr }}'
max_end_points: '{{ max_end_points }}' max_end_points: '{{ max_end_points }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -51,6 +51,7 @@ EXAMPLES = r'''
leaf_profile: sw_name leaf_profile: sw_name
interface_selector: interface_profile_name interface_selector: interface_profile_name
state: present state: present
delegate_to: localhost
- name: Remove an interface selector profile associated with a switch policy leaf profile - name: Remove an interface selector profile associated with a switch policy leaf profile
aci_interface_selector_to_switch_policy_leaf_profile: aci_interface_selector_to_switch_policy_leaf_profile:
@ -60,6 +61,7 @@ EXAMPLES = r'''
leaf_profile: sw_name leaf_profile: sw_name
interface_selector: interface_profile_name interface_selector: interface_profile_name
state: absent state: absent
delegate_to: localhost
- name: Query an interface selector profile associated with a switch policy leaf profile - name: Query an interface selector profile associated with a switch policy leaf profile
aci_interface_selector_to_switch_policy_leaf_profile: aci_interface_selector_to_switch_policy_leaf_profile:
@ -69,6 +71,8 @@ EXAMPLES = r'''
leaf_profile: sw_name leaf_profile: sw_name
interface_selector: interface_profile_name interface_selector: interface_profile_name
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -87,6 +87,8 @@ EXAMPLES = r'''
domain: l3dom_prod domain: l3dom_prod
vrf: prod vrf: prod
l3protocol: ospf l3protocol: ospf
state: present
delegate_to: localhost
- name: Delete L3Out - name: Delete L3Out
aci_l3out: aci_l3out:
@ -96,6 +98,7 @@ EXAMPLES = r'''
tenant: production tenant: production
name: prod_l3out name: prod_l3out
state: absent state: absent
delegate_to: localhost
- name: Query L3Out information - name: Query L3Out information
aci_l3out: aci_l3out:
@ -105,6 +108,8 @@ EXAMPLES = r'''
tenant: production tenant: production
name: prod_l3out name: prod_l3out
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -64,6 +64,7 @@ EXAMPLES = r'''
tenant: production tenant: production
tag: '{{ tag }}' tag: '{{ tag }}'
description: '{{ description }}' description: '{{ description }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -142,6 +142,7 @@ EXAMPLES = r'''
method: get method: get
path: /api/node/class/fvTenant.json path: /api/node/class/fvTenant.json
delegate_to: localhost delegate_to: localhost
register: query_result
- name: Configure contracts - name: Configure contracts
aci_rest: aci_rest:

View file

@ -125,6 +125,7 @@ EXAMPLES = r'''
leafs: 101 leafs: 101
interface: '1/7' interface: '1/7'
state: present state: present
delegate_to: localhost
- name: Remove Static Path binding for given EPG - name: Remove Static Path binding for given EPG
aci_static_binding_to_epg: aci_static_binding_to_epg:
@ -139,6 +140,7 @@ EXAMPLES = r'''
leafs: 101 leafs: 101
interface: '1/7' interface: '1/7'
state: absent state: absent
delegate_to: localhost
- name: Get specific Static Path binding for given EPG - name: Get specific Static Path binding for given EPG
aci_static_binding_to_epg: aci_static_binding_to_epg:
@ -153,6 +155,8 @@ EXAMPLES = r'''
leafs: 101 leafs: 101
interface: '1/7' interface: '1/7'
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -80,6 +80,7 @@ EXAMPLES = r'''
to: 1011 to: 1011
policy_group: somepolicygroupname policy_group: somepolicygroupname
state: present state: present
delegate_to: localhost
- name: adding a switch policy leaf profile selector associated Node Block range (w/o policy group) - name: adding a switch policy leaf profile selector associated Node Block range (w/o policy group)
aci_switch_leaf_selector: aci_switch_leaf_selector:
@ -92,6 +93,7 @@ EXAMPLES = r'''
from: 1011 from: 1011
to: 1011 to: 1011
state: present state: present
delegate_to: localhost
- name: Removing a switch policy leaf profile selector - name: Removing a switch policy leaf profile selector
aci_switch_leaf_selector: aci_switch_leaf_selector:
@ -101,6 +103,7 @@ EXAMPLES = r'''
leaf_profile: sw_name leaf_profile: sw_name
leaf: leaf_selector_name leaf: leaf_selector_name
state: absent state: absent
delegate_to: localhost
- name: Querying a switch policy leaf profile selector - name: Querying a switch policy leaf profile selector
aci_switch_leaf_selector: aci_switch_leaf_selector:
@ -110,6 +113,8 @@ EXAMPLES = r'''
leaf_profile: sw_name leaf_profile: sw_name
leaf: leaf_selector_name leaf: leaf_selector_name
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -50,6 +50,7 @@ EXAMPLES = r'''
leaf_profile: sw_name leaf_profile: sw_name
description: sw_description description: sw_description
state: present state: present
delegate_to: localhost
- name: Deleting a Leaf Profile - name: Deleting a Leaf Profile
aci_switch_policy_leaf_profile: aci_switch_policy_leaf_profile:
@ -58,6 +59,7 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
leaf_profile: sw_name leaf_profile: sw_name
state: absent state: absent
delegate_to: localhost
- name: Query a Leaf Profile - name: Query a Leaf Profile
aci_switch_policy_leaf_profile: aci_switch_policy_leaf_profile:
@ -66,6 +68,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
leaf_profile: sw_name leaf_profile: sw_name
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -69,6 +69,7 @@ EXAMPLES = r'''
switch_1_id: 1011 switch_1_id: 1011
switch_2_id: 1012 switch_2_id: 1012
state: present state: present
delegate_to: localhost
- name: Remove Explicit vPC Protection Group - name: Remove Explicit vPC Protection Group
aci_switch_policy_vpc_protection_group: aci_switch_policy_vpc_protection_group:
@ -77,6 +78,7 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
protection_group: leafPair101-vpcGrp protection_group: leafPair101-vpcGrp
state: absent state: absent
delegate_to: localhost
- name: Query vPC Protection Groups - name: Query vPC Protection Groups
aci_switch_policy_vpc_protection_group: aci_switch_policy_vpc_protection_group:
@ -84,6 +86,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
- name: Query our vPC Protection Group - name: Query our vPC Protection Group
aci_switch_policy_vpc_protection_group: aci_switch_policy_vpc_protection_group:
@ -92,6 +96,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
protection_group: leafPair101-vpcGrp protection_group: leafPair101-vpcGrp
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -63,6 +63,7 @@ EXAMPLES = r'''
tenant: ansible_test tenant: ansible_test
taboo_contract: taboo_contract_test taboo_contract: taboo_contract_test
state: present state: present
delegate_to: localhost
- name: Remove taboo contract - name: Remove taboo contract
aci_taboo_contract: aci_taboo_contract:
@ -72,6 +73,7 @@ EXAMPLES = r'''
tenant: ansible_test tenant: ansible_test
taboo_contract: taboo_contract_test taboo_contract: taboo_contract_test
state: absent state: absent
delegate_to: localhost
- name: Query all taboo contracts - name: Query all taboo contracts
aci_taboo_contract: aci_taboo_contract:
@ -79,6 +81,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
- name: Query a specific taboo contract - name: Query a specific taboo contract
aci_taboo_contract: aci_taboo_contract:
@ -88,6 +92,8 @@ EXAMPLES = r'''
tenant: ansible_test tenant: ansible_test
taboo_contract: taboo_contract_test taboo_contract: taboo_contract_test
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -50,6 +50,7 @@ EXAMPLES = r'''
tenant: production tenant: production
description: Production tenant description: Production tenant
state: present state: present
delegate_to: localhost
- name: Remove a tenant - name: Remove a tenant
aci_tenant: aci_tenant:
@ -58,6 +59,7 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
tenant: production tenant: production
state: absent state: absent
delegate_to: localhost
- name: Query a tenant - name: Query a tenant
aci_tenant: aci_tenant:
@ -66,6 +68,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
tenant: production tenant: production
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all tenants - name: Query all tenants
aci_tenant: aci_tenant:
@ -73,6 +77,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -55,6 +55,7 @@ EXAMPLES = r'''
action_rule: '{{ action_rule }}' action_rule: '{{ action_rule }}'
description: '{{ descr }}' description: '{{ descr }}'
tenant: '{{ tenant }}' tenant: '{{ tenant }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -96,6 +96,7 @@ EXAMPLES = r'''
move_frequency: 256 move_frequency: 256
description: test description: test
state: present state: present
delegate_to: localhost
- name: Remove an EPR policy - name: Remove an EPR policy
aci_epr_policy: aci_epr_policy:
@ -105,6 +106,7 @@ EXAMPLES = r'''
tenant: production tenant: production
epr_policy: EPRPol1 epr_policy: EPRPol1
state: absent state: absent
delegate_to: localhost
- name: Query an EPR policy - name: Query an EPR policy
aci_epr_policy: aci_epr_policy:
@ -114,6 +116,8 @@ EXAMPLES = r'''
tenant: production tenant: production
epr_policy: EPRPol1 epr_policy: EPRPol1
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all EPR policies - name: Query all EPR policies
aci_epr_policy: aci_epr_policy:
@ -121,6 +125,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -57,6 +57,7 @@ EXAMPLES = r'''
dst_group: '{{ dst_group }}' dst_group: '{{ dst_group }}'
description: '{{ descr }}' description: '{{ descr }}'
tenant: '{{ tenant }}' tenant: '{{ tenant }}'
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -64,6 +64,7 @@ EXAMPLES = r'''
dst_group: "{{ dst_group }}" dst_group: "{{ dst_group }}"
admin_state: "{{ admin_state }}" admin_state: "{{ admin_state }}"
description: "{{ description }}" description: "{{ description }}"
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -57,6 +57,7 @@ EXAMPLES = r'''
src_group: "{{ src_group }}" src_group: "{{ src_group }}"
dst_group: "{{ dst_group }}" dst_group: "{{ dst_group }}"
description: "{{ description }}" description: "{{ description }}"
delegate_to: localhost
''' '''
RETURN = r''' RETURN = r'''

View file

@ -58,6 +58,7 @@ EXAMPLES = r'''
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
description: Production VLANs description: Production VLANs
state: present state: present
delegate_to: localhost
- name: Remove a VLAN pool - name: Remove a VLAN pool
aci_vlan_pool: aci_vlan_pool:
@ -67,6 +68,7 @@ EXAMPLES = r'''
pool: production pool: production
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
state: absent state: absent
delegate_to: localhost
- name: Query a VLAN pool - name: Query a VLAN pool
aci_vlan_pool: aci_vlan_pool:
@ -76,6 +78,8 @@ EXAMPLES = r'''
pool: production pool: production
pool_allocation_mode: dynamic pool_allocation_mode: dynamic
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all VLAN pools - name: Query all VLAN pools
aci_vlan_pool: aci_vlan_pool:
@ -83,6 +87,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -78,6 +78,7 @@ EXAMPLES = r'''
block_start: 20 block_start: 20
block_end: 50 block_end: 50
state: present state: present
delegate_to: localhost
- name: Remove a VLAN encap block - name: Remove a VLAN encap block
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
@ -88,6 +89,7 @@ EXAMPLES = r'''
block_start: 20 block_start: 20
block_end: 50 block_end: 50
state: absent state: absent
delegate_to: localhost
- name: Query a VLAN encap block - name: Query a VLAN encap block
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
@ -98,6 +100,8 @@ EXAMPLES = r'''
block_start: 20 block_start: 20
block_end: 50 block_end: 50
state: query state: query
delegate_to: localhost
register: query_result
- name: Query a VLAN pool for encap blocks - name: Query a VLAN pool for encap blocks
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
@ -106,6 +110,8 @@ EXAMPLES = r'''
password: SomeSecretPassword password: SomeSecretPassword
pool: production pool: production
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all VLAN encap blocks - name: Query all VLAN encap blocks
aci_vlan_pool_encap_block: aci_vlan_pool_encap_block:
@ -113,6 +119,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''

View file

@ -67,6 +67,7 @@ EXAMPLES = r'''
policy_control_preference: enforced policy_control_preference: enforced
policy_control_direction: ingress policy_control_direction: ingress
state: present state: present
delegate_to: localhost
- name: Remove a VRF for a tenant - name: Remove a VRF for a tenant
aci_vrf: aci_vrf:
@ -76,6 +77,7 @@ EXAMPLES = r'''
vrf: vrf_lab vrf: vrf_lab
tenant: lab_tenant tenant: lab_tenant
state: absent state: absent
delegate_to: localhost
- name: Query a VRF of a tenant - name: Query a VRF of a tenant
aci_vrf: aci_vrf:
@ -85,6 +87,8 @@ EXAMPLES = r'''
vrf: vrf_lab vrf: vrf_lab
tenant: lab_tenant tenant: lab_tenant
state: query state: query
delegate_to: localhost
register: query_result
- name: Query all VRFs - name: Query all VRFs
aci_vrf: aci_vrf:
@ -92,6 +96,8 @@ EXAMPLES = r'''
username: admin username: admin
password: SomeSecretPassword password: SomeSecretPassword
state: query state: query
delegate_to: localhost
register: query_result
''' '''
RETURN = r''' RETURN = r'''