2018-01-11 22:17:10 +01:00
|
|
|
# Test code for the ACI modules
|
|
|
|
# Copyright: (c) 2018, Dag Wieers (dagwieers) <dag@wieers.com>
|
2018-02-14 16:09:20 +01:00
|
|
|
|
2018-01-11 22:17:10 +01:00
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
2018-02-14 16:09:20 +01:00
|
|
|
- name: Test that we have an ACI APIC host, ACI username and ACI password
|
2018-01-11 22:17:10 +01:00
|
|
|
fail:
|
|
|
|
msg: 'Please define the following variables: aci_hostname, aci_username and aci_password.'
|
|
|
|
when: aci_hostname is not defined or aci_username is not defined or aci_password is not defined
|
|
|
|
|
2018-02-14 16:09:20 +01:00
|
|
|
- include_tasks: static.yml
|
|
|
|
when: static is not defined or static
|
2018-01-11 22:17:10 +01:00
|
|
|
|
2018-02-14 16:09:20 +01:00
|
|
|
- include_tasks: dynamic.yml
|
|
|
|
when: dynamic is not defined or dynamic
|