Ansible repository with playbooks to manage azure objects
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

39 lignes
1.2 KiB

  1. {
  2. "location": "{{ ip.location }}",
  3. "properties": {
  4. "publicIPAllocationMethod": "{{ ip.allocation_method | default('Static') }}",
  5. "idleTimeoutInMinutes": {{ ip.idletimeout | default(5) }},
  6. "publicIPAddressVersion": "{{ ip.version | default('IPv4') }}",
  7. {% if ip.ddos is defined %}
  8. "ddosSettings": {
  9. {% if ip.ddos.CustomPolicyid is defined %}
  10. "ddosCustomPolicy": {
  11. "id": "{{ ip.ddosCustomPolicyid }}"
  12. },
  13. {% endif %}
  14. "protectedIP": "{{ ip.ddos.enableprotection | default(false) }}",
  15. {% if ip.ddos.enableprotection is defined and ip.ddos.enableprotection %}
  16. "protectionCoverage": "{{ ip.ddos.protectionCoverage | default('Standard') }}",
  17. {% endif %}
  18. },
  19. {% endif %}
  20. "deleteOption": "{{ ip.deleteOption | default('Detach') }}",
  21. {% if ip.dns is defined %}
  22. "dnsSettings": {
  23. "domainNameLabel": "{{ ip.dns.label | default('') }}",
  24. "fqdn": "{{ ip.dns.fqdn | default('') }}",
  25. "reverseFqdn": "{{ ip.dns.reverse | default('') }}"
  26. }
  27. {% endif %}
  28. },
  29. "sku": {
  30. "name": "{{ ip.sku | default('Standard') }}",
  31. "tier": "{{ ip.tier | default('Regional') }}"
  32. },
  33. "zones": [
  34. {% for zone in ip.zones | default([]) %}
  35. "{{ zone }}",
  36. {% endfor %}
  37. ]
  38. }