add work around for restart hang with test

This commit is contained in:
Leo Drachenfeuer 2023-06-25 13:37:22 +00:00
parent 8cf12cc880
commit 7d334559b7
Signed by: dragonleo
GPG Key ID: A8338FC081137CF0

View File

@ -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"