From 18e2ba2f75eac95a67deafa1f931da90d3074498 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 7 Sep 2023 00:00:36 +0100 Subject: [PATCH] hmmmm --- infra/joplin/0001_software_playbook.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/infra/joplin/0001_software_playbook.yaml b/infra/joplin/0001_software_playbook.yaml index 8bee726..8a893d0 100644 --- a/infra/joplin/0001_software_playbook.yaml +++ b/infra/joplin/0001_software_playbook.yaml @@ -2,19 +2,21 @@ hosts: joplin gather_facts: false tasks: - - name: Debug - ansible.builtin.debug: - msg: "{{ inventory_hostname }}" - name: Wait for connection ansible.builtin.wait_for: host: "{{ inventory_hostname }}" port: 22 timeout: 300 delegate_to: localhost + - name: Wait for 10s + ansible.builtin.wait_for: + timeout: 10 + - name: Ping + ansible.builtin.shell: | + ping -c 5 {{ inventory_hostname }} + delegate_to: localhost - name: Test some stuff ansible.builtin.shell: | touch ~/hmm echo test > ~/test echo test2 >> ~/test - args: - executable: /bin/bash