community.dns.wait_for_txt – Wait for TXT entries to be available on all authoritative nameservers
This plugin is part of the community.dns collection (version 2.0.3).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.dns.
To use it in a playbook, specify:
New in version 0.1.0: of community.dns
Wait for TXT entries with specific values to show up on all authoritative nameservers for the DNS name.
The below requirements are needed on the host that executes this module.
dnspython >= 1.15.0 (maybe older versions also work)
- name: Wait for a TXT entry to appear community.dns.wait_for_txt: records: # We want that www.example.com has a single TXT record with value 'Hello world!'. # There should not be any other TXT record for www.example.com. - name: www.example.com values: "Hello world!" mode: equals # We want that example.com has a specific SPF record set. # We do not care about other TXT records. - name: www.example.com values: "v=spf1 a mx -all" mode: subset
Common return values are documented here, the following are the fields unique to this module:
Felix Fontein (@felixfontein)