You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.9 KiB

  1. ---
  2. - name: check azure_tenant_id value
  3. fail:
  4. msg: "azure_tenant_id is missing"
  5. when: azure_tenant_id is not defined or not azure_tenant_id
  6. - name: check azure_subscription_id value
  7. fail:
  8. msg: "azure_subscription_id is missing"
  9. when: azure_subscription_id is not defined or not azure_subscription_id
  10. - name: check azure_aad_client_id value
  11. fail:
  12. msg: "azure_aad_client_id is missing"
  13. when: azure_aad_client_id is not defined or not azure_aad_client_id
  14. - name: check azure_aad_client_secret value
  15. fail:
  16. msg: "azure_aad_client_secret is missing"
  17. when: azure_aad_client_secret is not defined or not azure_aad_client_secret
  18. - name: check azure_resource_group value
  19. fail:
  20. msg: "azure_resource_group is missing"
  21. when: azure_resource_group is not defined or not azure_resource_group
  22. - name: check azure_location value
  23. fail:
  24. msg: "azure_location is missing"
  25. when: azure_location is not defined or not azure_location
  26. - name: check azure_subnet_name value
  27. fail:
  28. msg: "azure_subnet_name is missing"
  29. when: azure_subnet_name is not defined or not azure_subnet_name
  30. - name: check azure_security_group_name value
  31. fail:
  32. msg: "azure_security_group_name is missing"
  33. when: azure_security_group_name is not defined or not azure_security_group_name
  34. - name: check azure_vnet_name value
  35. fail:
  36. msg: "azure_vnet_name is missing"
  37. when: azure_vnet_name is not defined or not azure_vnet_name
  38. - name: check azure_vnet_resource_group value
  39. fail:
  40. msg: "azure_vnet_resource_group is missing"
  41. when: azure_vnet_resource_group is not defined or not azure_vnet_resource_group
  42. - name: check azure_route_table_name value
  43. fail:
  44. msg: "azure_route_table_name is missing"
  45. when: azure_route_table_name is not defined or not azure_route_table_name
  46. - name: check azure_loadbalancer_sku value
  47. fail:
  48. msg: "azure_loadbalancer_sku has an invalid value '{{ azure_loadbalancer_sku }}'. Supported values are 'basic', 'standard'"
  49. when: azure_loadbalancer_sku not in ["basic", "standard"]
  50. - name: "check azure_exclude_master_from_standard_lb is a bool"
  51. assert:
  52. that: azure_exclude_master_from_standard_lb |type_debug == 'bool'
  53. - name: "check azure_disable_outbound_snat is a bool"
  54. assert:
  55. that: azure_disable_outbound_snat |type_debug == 'bool'
  56. - name: "check azure_use_instance_metadata is a bool"
  57. assert:
  58. that: azure_use_instance_metadata |type_debug == 'bool'
  59. - name: check azure_vmtype value
  60. fail:
  61. msg: "azure_vmtype is missing. Supported values are 'standard' or 'vmss'"
  62. when: azure_vmtype is not defined or not azure_vmtype
  63. - name: check azure_cloud value
  64. fail:
  65. msg: "azure_cloud has an invalid value '{{ azure_cloud }}'. Supported values are 'AzureChinaCloud', 'AzureGermanCloud', 'AzurePublicCloud', 'AzureUSGovernmentCloud'."
  66. when: azure_cloud not in ["AzureChinaCloud", "AzureGermanCloud", "AzurePublicCloud", "AzureUSGovernmentCloud"]