add work around for restart hang with test
This commit is contained in:
parent
8cf12cc880
commit
7d334559b7
@ -8,5 +8,17 @@
|
||||
ansible.builtin.service:
|
||||
name: teleport
|
||||
state: restarted
|
||||
failed_when: false
|
||||
async: 15
|
||||
poll: 0
|
||||
when: ansible_service_mgr == "systemd"
|
||||
notify: "Check Teleport restart"
|
||||
|
||||
- name: "Check Teleport restart"
|
||||
delegate_to: localhost
|
||||
ansible.builtin.wait_for:
|
||||
host: "{{ inventory_hostname }}"
|
||||
port: "3022"
|
||||
delay: 10
|
||||
timeout: 30
|
||||
state: started
|
||||
msg: "Telport has restarted"
|
||||
|
Loading…
Reference in New Issue
Block a user