updated to use local_action instead of delegate_to
diff --git a/tasks/main.yml b/tasks/main.yml
index 0ba4c1d..08a6510 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -9,12 +9,8 @@
- name: Waiting for server to complete restarting
become: no
- delegate_to: 127.0.0.1
- wait_for:
- host: '{{ ansible_host }}'
- state: started
- delay: "{{ start_check_delay | d(15) }}"
- timeout: '{{ server_restart_timeout | d(45) }}'
+ local_action:
+ wait_for host='{{ ansible_host }}' state=started delay="{{ start_check_delay | d(15) }}" timeout='{{ server_restart_timeout | d(45) }}'
- name: Report server started
debug: