- hosts: localhost tasks: - name: Check file exists on logserver ansible.builtin.uri: # fqdn cannot be resolved within executor pod url: http://logserver:8080/logs/test-url # validate_certs: false return_content: true register: resp until: "'OK' in resp.content" retries: 3600 delay: 1