felixfontein.tools.wait_for_txt – Wait for TXT entries to be available on all authoritative nameservers¶
This plugin is part of the felixfontein.tools collection (version 1.4.1).
To install it use:
ansible-galaxy collection install felixfontein.tools.
To use it in a playbook, specify:
New in version 1.4.0: of felixfontein.tools
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 felixfontein.tools.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)