Use uri module instead of sleep for polling domains
For another time but will help speed up deployments.
- name: Wait for domain to come up
uri:
url: "https://{{ domain }}"
status_code: 200
register: result
until: result.status == 200
retries: 60
delay: 5