master #1
@ -8,5 +8,17 @@
|
|||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: teleport
|
name: teleport
|
||||||
state: restarted
|
state: restarted
|
||||||
failed_when: false
|
async: 15
|
||||||
|
poll: 0
|
||||||
when: ansible_service_mgr == "systemd"
|
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