--- # Create DNS challenges for DNS provider HostTech - name: Creating challenge DNS entries for domains {{ ', '.join(acme_certificate_domains) }} via HostTech API hosttech_dns_record: state: present zone: "{{ item.key | regex_replace('^(?:.*\\.|)([^.]+\\.[^.]+)$', '\\1') }}" record: "{{ item.key }}" type: TXT ttl: 300 value: "{{ item.value }}" overwrite: true hosttech_username: "{{ acme_certificate_hosttech_username }}" hosttech_password: "{{ acme_certificate_hosttech_password }}" delegate_to: localhost run_once: true with_dict: "{{ acme_certificate_INTERNAL_challenge.challenge_data_dns }}" tags: - issue-tls-certs-newkey - issue-tls-certs - name: Wait for DNS entries to propagate pause: seconds: 10