diff --git a/handlers/main.yml b/handlers/main.yml index 832fffcb..fba24596 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -28,7 +28,7 @@ - name: Wait for web server to complete starting wait_for: - host: "{{ ansible_default_ipv4.address }}" + host: "{{ ansible_default_ipv4.address | default('127.0.0.1') }}" port: "{{ item }}" timeout: 25 delay: 10