From 92fbca47db6051e9ed0c0d99af037d7c0306f956 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Mon, 11 Sep 2023 00:34:59 +0100 Subject: [PATCH] fix wait for conn --- infra/joplin/0001_software_playbook.yaml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/infra/joplin/0001_software_playbook.yaml b/infra/joplin/0001_software_playbook.yaml index 3913252..a3e1006 100644 --- a/infra/joplin/0001_software_playbook.yaml +++ b/infra/joplin/0001_software_playbook.yaml @@ -3,21 +3,8 @@ gather_facts: false tasks: - name: Wait for connection - ansible.builtin.ping: - ignore_unreachable: true - register: wait_conn - retries: 30 - delay: 10 - until: wait_conn.ping is defined - failed_when: wait_conn.ping is not defined - # ansible.builtin.wait_for: - # host: "{{ inventory_hostname }}" - # port: 22 - # timeout: 300 - # delegate_to: localhost - - name: Debug - ansible.builtin.debug: - var: wait_conn + ansible.builtin.wait_for_connection: + timeout: 300 - name: Test some stuff ansible.builtin.shell: | touch ~/hmm