Debian Codegraph @

ansible_collections/cisco/aci/tests/integration/targets/aci_vlan_pool/tasks/main.yml

raw symbols SCIP
1 # Test code for the ACI modules
2 # Copyright: (c) 2018, Dag Wieers (dagwieers) <[email protected]>
3
4 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
5
6 - name: Test that we have an ACI APIC host, ACI username and ACI password
7 ansible.builtin.fail:
8 msg: 'Please define the following variables: aci_hostname, aci_username and aci_password.'
9 when: aci_hostname is not defined or aci_username is not defined or aci_password is not defined
10
11 - name: Verify Cloud and Non-Cloud Sites in use.
12 ansible.builtin.include_tasks: ../../../../../../integration/targets/aci_cloud_provider/tasks/main.yml
13
14 - name: Execute tasks only for non-cloud sites
15 when: query_cloud.current == [] # This condition will execute only non-cloud sites
16 block: # block specifies execution of tasks within, based on conditions
17 - include_tasks: static.yml
18 when: static is not defined or static
19
20 - include_tasks: dynamic.yml
21 when: dynamic is not defined or dynamic