From 49b91249184388019f3db0998ab8f518b1da682d Mon Sep 17 00:00:00 2001 From: Francis CN Date: Wed, 18 Sep 2024 21:15:24 -0400 Subject: [PATCH] feat: add retry for gce plugin when waiting for SSH --- .../gce/playbooks/tasks/create_linux_instance.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/molecule_plugins/gce/playbooks/tasks/create_linux_instance.yml b/src/molecule_plugins/gce/playbooks/tasks/create_linux_instance.yml index 8f25b0b0..4e13e13f 100644 --- a/src/molecule_plugins/gce/playbooks/tasks/create_linux_instance.yml +++ b/src/molecule_plugins/gce/playbooks/tasks/create_linux_instance.yml @@ -60,4 +60,6 @@ host: "{{ item.networkInterfaces.0.accessConfigs.0.natIP if molecule_yml.driver.external_access else item.networkInterfaces.0.networkIP }}" search_regex: SSH delay: 10 + retries: 6 + delay: 10 loop: "{{ server.results }}"