2016-11-29 17:20:28 +08:00
---
2023-07-26 22:36:22 +08:00
- name : Check azure_tenant_id value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_tenant_id is missing"
2019-04-29 14:00:20 +08:00
when : azure_tenant_id is not defined or not azure_tenant_id
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_subscription_id value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_subscription_id is missing"
2019-04-29 14:00:20 +08:00
when : azure_subscription_id is not defined or not azure_subscription_id
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_aad_client_id value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_aad_client_id is missing"
2019-04-29 14:00:20 +08:00
when : azure_aad_client_id is not defined or not azure_aad_client_id
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_aad_client_secret value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_aad_client_secret is missing"
2019-04-29 14:00:20 +08:00
when : azure_aad_client_secret is not defined or not azure_aad_client_secret
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_resource_group value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_resource_group is missing"
2019-04-29 14:00:20 +08:00
when : azure_resource_group is not defined or not azure_resource_group
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_location value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_location is missing"
2019-04-29 14:00:20 +08:00
when : azure_location is not defined or not azure_location
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_subnet_name value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_subnet_name is missing"
2019-04-29 14:00:20 +08:00
when : azure_subnet_name is not defined or not azure_subnet_name
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_security_group_name value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_security_group_name is missing"
2019-04-29 14:00:20 +08:00
when : azure_security_group_name is not defined or not azure_security_group_name
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_vnet_name value
2016-11-29 17:20:28 +08:00
fail :
msg : "azure_vnet_name is missing"
2019-04-29 14:00:20 +08:00
when : azure_vnet_name is not defined or not azure_vnet_name
2016-11-29 17:20:28 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_vnet_resource_group value
2018-03-02 00:41:19 +08:00
fail :
msg : "azure_vnet_resource_group is missing"
2019-04-29 14:00:20 +08:00
when : azure_vnet_resource_group is not defined or not azure_vnet_resource_group
2018-03-02 00:41:19 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_route_table_name value
2016-12-09 21:06:48 +08:00
fail :
msg : "azure_route_table_name is missing"
2019-04-29 14:00:20 +08:00
when : azure_route_table_name is not defined or not azure_route_table_name
2019-04-24 17:14:01 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_loadbalancer_sku value
2019-04-24 17:14:01 +08:00
fail :
2019-05-03 05:24:21 +08:00
msg : "azure_loadbalancer_sku has an invalid value '{{ azure_loadbalancer_sku }}'. Supported values are 'basic', 'standard'"
2019-04-24 17:14:01 +08:00
when : azure_loadbalancer_sku not in ["basic", "standard"]
2023-07-26 22:36:22 +08:00
- name : "Check azure_exclude_master_from_standard_lb is a bool"
2019-04-24 17:14:01 +08:00
assert :
2023-07-05 11:36:54 +08:00
that : azure_exclude_master_from_standard_lb | type_debug == 'bool'
2019-04-24 17:14:01 +08:00
2023-07-26 22:36:22 +08:00
- name : "Check azure_disable_outbound_snat is a bool"
2019-04-24 17:14:01 +08:00
assert :
2023-07-05 11:36:54 +08:00
that : azure_disable_outbound_snat | type_debug == 'bool'
2019-04-24 17:14:01 +08:00
2023-07-26 22:36:22 +08:00
- name : "Check azure_use_instance_metadata is a bool"
2019-04-24 17:14:01 +08:00
assert :
2023-07-05 11:36:54 +08:00
that : azure_use_instance_metadata | type_debug == 'bool'
2020-04-01 01:12:40 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_vmtype value
2020-04-01 01:12:40 +08:00
fail :
msg : "azure_vmtype is missing. Supported values are 'standard' or 'vmss'"
when : azure_vmtype is not defined or not azure_vmtype
2020-06-26 05:35:30 +08:00
2023-07-26 22:36:22 +08:00
- name : Check azure_cloud value
2020-06-26 05:35:30 +08:00
fail :
msg : "azure_cloud has an invalid value '{{ azure_cloud }}'. Supported values are 'AzureChinaCloud', 'AzureGermanCloud', 'AzurePublicCloud', 'AzureUSGovernmentCloud'."
when : azure_cloud not in ["AzureChinaCloud", "AzureGermanCloud", "AzurePublicCloud", "AzureUSGovernmentCloud"]