diff options
Diffstat (limited to 'ansible_collections/community/dns/tests/ee')
-rw-r--r-- | ansible_collections/community/dns/tests/ee/roles/wait_for_txt/tasks/main.yml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ansible_collections/community/dns/tests/ee/roles/wait_for_txt/tasks/main.yml b/ansible_collections/community/dns/tests/ee/roles/wait_for_txt/tasks/main.yml index 43941d042..7c7de6b70 100644 --- a/ansible_collections/community/dns/tests/ee/roles/wait_for_txt/tasks/main.yml +++ b/ansible_collections/community/dns/tests/ee/roles/wait_for_txt/tasks/main.yml @@ -3,16 +3,12 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later -- name: Get TXT records for github.com - shell: | - dig -t TXT github.com +short | sed -e 's/" "//g' -e 's/"//g' - register: dig - - name: Wait for existing TXT entry community.dns.wait_for_txt: records: - name: github.com - values: "{{ dig.stdout_lines }}" + values: | + {{ query('community.dns.lookup_as_dict', 'github.com', type='TXT') | map(attribute='value') | list }} - name: github.io values: [] query_timeout: 20 |