From e5d8151a6359fbe1218ff58c3e1ce010a400b9b6 Mon Sep 17 00:00:00 2001 From: Steve Brasier Date: Thu, 19 Oct 2023 16:19:28 +0000 Subject: [PATCH] wait for packer VM --- ansible/fatimage.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/fatimage.yml b/ansible/fatimage.yml index 7f06923d5..0807935e9 100644 --- a/ansible/fatimage.yml +++ b/ansible/fatimage.yml @@ -1,5 +1,14 @@ # Builder version of site.yml just installing binaries +- hosts: builder + become: no + gather_facts: no + tasks: + - name: Wait for connection + wait_for_connection: + delay: 5 + timeout: "{{ 60 * 5 }}" # seconds + - name: Run pre.yml hook vars: appliances_environment_root: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}"