From f2d24151c2e13d278334d3140bdd71b4c7a2302d Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Tue, 14 Nov 2023 21:46:43 -0600 Subject: [PATCH 1/2] Set the back-off delay to 5 minutes before re-deployment --- plugins/modules/cloudformation.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/modules/cloudformation.py b/plugins/modules/cloudformation.py index 24f4f01f7ab..267b919eb70 100644 --- a/plugins/modules/cloudformation.py +++ b/plugins/modules/cloudformation.py @@ -181,6 +181,14 @@ tags: Stack: "ansible-cloudformation" +- name: Re-try the launch of CloudFormation Stack after 5 minutes of failure + amazon.aws.cloudformation: + stack_name: "my-cloudformation-stack" + state: "present" + region: "us-east-1" + template: "files/cloudformation-template.yaml" + backoff_delay: 300 + # Basic role example - name: create a stack, specify role that cloudformation assumes amazon.aws.cloudformation: From 9482fe0d926cd0908e6ad82dfee4b97c6c997b96 Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Wed, 15 Nov 2023 17:47:32 +0000 Subject: [PATCH 2/2] cleaned up the whitespace to fix the failing jobs --- plugins/modules/cloudformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/modules/cloudformation.py b/plugins/modules/cloudformation.py index 267b919eb70..93edd45568c 100644 --- a/plugins/modules/cloudformation.py +++ b/plugins/modules/cloudformation.py @@ -187,8 +187,8 @@ state: "present" region: "us-east-1" template: "files/cloudformation-template.yaml" - backoff_delay: 300 - + backoff_delay: 300 + # Basic role example - name: create a stack, specify role that cloudformation assumes amazon.aws.cloudformation: