Ansible repository with playbooks to manage azure objects
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

39 行
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. }