clean-dns.yml 666 B

12345678910111213141516171819202122
  1. ---
  2. - name: Generate DNS records
  3. include_tasks: generate-dns.yml
  4. - name: "Remove DNS A records"
  5. nsupdate:
  6. key_name: "{{ item.0.key_name }}"
  7. key_secret: "{{ item.0.key_secret }}"
  8. key_algorithm: "{{ item.0.key_algorithm }}"
  9. server: "{{ item.0.server }}"
  10. zone: "{{ item.0.zone }}"
  11. record: "{{ item.1.fqdn | replace('.' + openshift_openstack_nsupdate_zone, '') }}"
  12. value: "{{ item.1.ip }}"
  13. type: "{{ item.1.type }}"
  14. state: absent
  15. with_subelements:
  16. - "{{ openshift_openstack_dns_records | default([]) }}"
  17. - entries
  18. register: nsupdate_remove_result
  19. until: nsupdate_remove_result is succeeded
  20. retries: 10
  21. delay: 1