2017-12-14 00:35:50 +01:00
|
|
|
- name: ensure vxlan pool exists for tests to kick off
|
|
|
|
aci_encap_pool: &aci_pool_present
|
|
|
|
host: "{{ aci_hostname }}"
|
|
|
|
username: "{{ aci_username }}"
|
|
|
|
password: "{{ aci_password }}"
|
2018-01-21 00:38:20 +01:00
|
|
|
validate_certs: '{{ aci_validate_certs | default(false) }}'
|
|
|
|
use_ssl: '{{ aci_use_ssl | default(true) }}'
|
|
|
|
use_proxy: '{{ aci_use_proxy | default(true) }}'
|
2018-08-06 22:42:10 +02:00
|
|
|
output_level: '{{ aci_output_level | default("info") }}'
|
2017-12-14 00:35:50 +01:00
|
|
|
pool: anstest
|
|
|
|
pool_type: vxlan
|
|
|
|
description: Ansible Test
|
2018-08-06 22:42:10 +02:00
|
|
|
state: present
|
2017-12-14 00:35:50 +01:00
|
|
|
|
|
|
|
- name: cleanup vxlan pool
|
|
|
|
aci_encap_pool:
|
|
|
|
<<: *aci_pool_present
|
|
|
|
state: absent
|
2018-08-07 23:54:54 +02:00
|
|
|
when: pool_present is changed
|