1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ACI: Support validate_certs, use_ssl and use_proxy (#35146)

This PR includes:
- validate_certs, use_ssl and use_proxy support for the integration
  tests
This commit is contained in:
Dag Wieers 2018-01-21 00:38:20 +01:00 committed by GitHub
parent 4b8e76747e
commit 2bd0653488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 225 additions and 76 deletions

View file

@ -52,6 +52,9 @@ overridden_in_parent=2000
aci_hostname=your-apic-1 aci_hostname=your-apic-1
aci_username=admin aci_username=admin
aci_password=your-password aci_password=your-password
aci_validate_certs=no
aci_use_ssl=yes
aci_use_proxy=no
[aci] [aci]
localhost ansible_ssh_host=127.0.0.1 ansible_connection=local localhost ansible_ssh_host=127.0.0.1 ansible_connection=local

View file

@ -15,7 +15,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
user: admin user: admin
certificate_name: admin certificate_name: admin
state: absent state: absent
@ -27,7 +29,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
user: admin user: admin
certificate_name: admin certificate_name: admin
certificate: "{{ lookup('file', 'pki/admin.crt') }}" certificate: "{{ lookup('file', 'pki/admin.crt') }}"
@ -62,7 +66,9 @@
username: '{{ aci_username }}' username: '{{ aci_username }}'
#password: '{{ aci_password }}' #password: '{{ aci_password }}'
private_key: '{{ role_path }}/pki/admin.key' private_key: '{{ role_path }}/pki/admin.key'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
user: admin user: admin
state: query state: query
check_mode: yes check_mode: yes

View file

@ -13,9 +13,11 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
leaf_interface_profile: leafintprftest validate_certs: '{{ aci_validate_certs | default(false) }}'
validate_certs: no use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
leaf_interface_profile: leafintprftest
register: leaf_profile_present register: leaf_profile_present
# TODO: Ensure that leaf Policy Group Exists (module missing) (infra:AccPortGrp) # TODO: Ensure that leaf Policy Group Exists (module missing) (infra:AccPortGrp)

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -13,9 +13,11 @@
hostname: "{{ aci_hostname }}" hostname: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
tenant: anstest use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
tenant: anstest
- name: create a snapshot - name: create a snapshot
aci_config_snapshot: &create_snapshot aci_config_snapshot: &create_snapshot

View file

@ -13,7 +13,9 @@
hostname: "{{ aci_hostname }}" hostname: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
export_policy: anstest export_policy: anstest
max_count: 10 max_count: 10
include_secure: no include_secure: no

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -4,7 +4,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
pool: anstest pool: anstest
pool_type: vlan pool_type: vlan

View file

@ -4,7 +4,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
pool: anstest pool: anstest
pool_type: vsan pool_type: vsan

View file

@ -4,7 +4,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
pool: anstest pool: anstest
pool_type: vxlan pool_type: vxlan

View file

@ -3,7 +3,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
pool: anstest pool: anstest
pool_type: vlan pool_type: vlan
@ -15,7 +17,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
pool: anstest pool: anstest
pool_type: vlan pool_type: vlan

View file

@ -3,7 +3,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
pool: anstest pool: anstest
pool_type: vsan pool_type: vsan

View file

@ -3,7 +3,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
pool: anstest pool: anstest
pool_type: vxlan pool_type: vxlan

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present
@ -35,7 +37,9 @@
hostname: "{{ aci_hostname }}" hostname: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
method: post method: post
path: api/mo/uni/phys-anstest.json path: api/mo/uni/phys-anstest.json
content: {"physDomP": {"attributes": {}}} content: {"physDomP": {"attributes": {}}}

View file

@ -14,7 +14,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
tenant: ansible_test tenant: ansible_test
state: present state: present
@ -23,7 +25,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
tenant: ansible_test tenant: ansible_test
filter: filter_test filter: filter_test
state: absent state: absent
@ -34,7 +38,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
tenant: ansible_test tenant: ansible_test
filter: filter_test filter: filter_test
state: present state: present
@ -119,7 +125,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: query state: query
check_mode: yes check_mode: yes
register: cm_query_all_filters register: cm_query_all_filters

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
tenant: anstest tenant: anstest
@ -22,7 +24,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present

View file

@ -15,7 +15,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_interface_profile: ansible_test leaf_interface_profile: ansible_test
state: absent state: absent
@ -26,7 +28,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_interface_profile: ansible_test leaf_interface_profile: ansible_test
state: present state: present
check_mode: yes check_mode: yes
@ -108,7 +112,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: query state: query
check_mode: yes check_mode: yes
register: cm_query_all_leaf_interface_profiles register: cm_query_all_leaf_interface_profiles

View file

@ -13,8 +13,10 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_profile: swleafprftest leaf_profile: swleafprftest
validate_certs: no
state: absent state: absent
- name: delete Interface Policy Leaf profile for kick off - name: delete Interface Policy Leaf profile for kick off
@ -22,8 +24,10 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_interface_profile: leafintprftest leaf_interface_profile: leafintprftest
validate_certs: no
state: absent state: absent
- name: Ensuring Switch Policy Leaf profile exists for kick off - name: Ensuring Switch Policy Leaf profile exists for kick off
@ -31,8 +35,10 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_profile: swleafprftest leaf_profile: swleafprftest
validate_certs: no
state: present state: present
register: leaf_profile_present register: leaf_profile_present
@ -41,8 +47,10 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_interface_profile: leafintprftest leaf_interface_profile: leafintprftest
validate_certs: no
state: present state: present
register: leaf_profile_present register: leaf_profile_present

View file

@ -14,7 +14,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: delete method: delete
delegate_to: localhost delegate_to: localhost
@ -25,7 +27,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: content:
@ -56,7 +60,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: content:
@ -99,7 +105,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost
@ -116,7 +124,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost

View file

@ -14,7 +14,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: delete method: delete
delegate_to: localhost delegate_to: localhost
@ -25,7 +27,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: | content: |
@ -56,7 +60,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: | content: |
@ -99,7 +105,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost
@ -116,7 +124,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost

View file

@ -14,7 +14,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].xml path: /api/mo/uni/tn-[ansible_test].xml
method: delete method: delete
delegate_to: localhost delegate_to: localhost
@ -25,7 +27,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].xml path: /api/mo/uni/tn-[ansible_test].xml
method: post method: post
content: | content: |
@ -50,7 +54,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].xml path: /api/mo/uni/tn-[ansible_test].xml
method: post method: post
content: | content: |
@ -86,7 +92,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].xml path: /api/mo/uni/tn-[ansible_test].xml
method: get method: get
delegate_to: localhost delegate_to: localhost
@ -103,7 +111,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].xml path: /api/mo/uni/tn-[ansible_test].xml
method: get method: get
delegate_to: localhost delegate_to: localhost

View file

@ -14,7 +14,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: delete method: delete
delegate_to: localhost delegate_to: localhost
@ -25,7 +27,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: content:
@ -52,7 +56,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: content:
@ -91,7 +97,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost
@ -108,7 +116,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost

View file

@ -14,7 +14,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: delete method: delete
delegate_to: localhost delegate_to: localhost
@ -25,7 +27,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: | content: |
@ -52,7 +56,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: post method: post
content: | content: |
@ -91,7 +97,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost
@ -108,7 +116,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
path: /api/mo/uni/tn-[ansible_test].json path: /api/mo/uni/tn-[ansible_test].json
method: get method: get
delegate_to: localhost delegate_to: localhost

View file

@ -15,7 +15,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_profile: ansible_test leaf_profile: ansible_test
state: absent state: absent
@ -26,7 +28,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_profile: ansible_test leaf_profile: ansible_test
state: present state: present
check_mode: yes check_mode: yes
@ -108,7 +112,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: query state: query
check_mode: yes check_mode: yes
register: cm_query_all_switch_leaf_profiles register: cm_query_all_switch_leaf_profiles

View file

@ -13,8 +13,10 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_profile: sw_name_test leaf_profile: sw_name_test
validate_certs: no
state: absent state: absent
- name: Ensuring Switch Policy Leaf profile exists for kick off - name: Ensuring Switch Policy Leaf profile exists for kick off
@ -22,8 +24,10 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
leaf_profile: sw_name_test leaf_profile: sw_name_test
validate_certs: no
state: present state: present
register: leaf_profile_present register: leaf_profile_present

View file

@ -15,7 +15,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
tenant: ansible_test tenant: ansible_test
state: absent state: absent
@ -26,7 +28,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
tenant: ansible_test tenant: ansible_test
state: present state: present
check_mode: yes check_mode: yes
@ -108,7 +112,9 @@
hostname: '{{ aci_hostname }}' hostname: '{{ aci_hostname }}'
username: '{{ aci_username }}' username: '{{ aci_username }}'
password: '{{ aci_password }}' password: '{{ aci_password }}'
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: query state: query
check_mode: yes check_mode: yes
register: cm_query_all_tenants register: cm_query_all_tenants

View file

@ -14,7 +14,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
pool: anstest pool: anstest
allocation_mode: static allocation_mode: static

View file

@ -14,7 +14,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: absent state: absent
pool: anstest pool: anstest
allocation_mode: static allocation_mode: static
@ -25,7 +27,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
pool: anstest pool: anstest
allocation_mode: static allocation_mode: static

View file

@ -13,7 +13,9 @@
host: "{{ aci_hostname }}" host: "{{ aci_hostname }}"
username: "{{ aci_username }}" username: "{{ aci_username }}"
password: "{{ aci_password }}" password: "{{ aci_password }}"
validate_certs: no validate_certs: '{{ aci_validate_certs | default(false) }}'
use_ssl: '{{ aci_use_ssl | default(true) }}'
use_proxy: '{{ aci_use_proxy | default(true) }}'
state: present state: present
tenant: anstest tenant: anstest
register: tenant_present register: tenant_present