From 0edaee542f3ccba013ca952a081c26bd9c82ba66 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Fri, 8 Sep 2023 23:27:31 +0100 Subject: [PATCH] Better? + qemu-guest-agent --- infra/joplin/0001_software_playbook.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/infra/joplin/0001_software_playbook.yaml b/infra/joplin/0001_software_playbook.yaml index 33a8078..eb6dd44 100644 --- a/infra/joplin/0001_software_playbook.yaml +++ b/infra/joplin/0001_software_playbook.yaml @@ -8,17 +8,14 @@ port: 22 timeout: 300 delegate_to: localhost - - name: Wait for 10s - ansible.builtin.wait_for: - timeout: 10 - delegate_to: localhost - - name: Ping - ansible.builtin.shell: | - apt update && apt install -y iputils-ping - ping -c 5 {{ inventory_hostname }} - delegate_to: localhost - name: Test some stuff ansible.builtin.shell: | + apt update + apt install -y qemu-guest-agent touch ~/hmm echo test > ~/test echo test2 >> ~/test + retries: 10 + delay: 6 + until: result is not failed +