From b18be4b98b0fd6c6226ef7b505e1584b876f16a3 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sat, 25 Feb 2023 19:49:53 +0200
Subject: [PATCH] Update playbook: Update the SSM param module.

Also set the region, Am I Live is running in a region different to the
default.
---
 Ansible/requirements.yml | 4 ++--
 Ansible/update.yaml      | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Ansible/requirements.yml b/Ansible/requirements.yml
index f56a5b3..2acc45f 100644
--- a/Ansible/requirements.yml
+++ b/Ansible/requirements.yml
@@ -1,6 +1,6 @@
 ---
 collections:
   - name: amazon.aws
-    version: '>=3.2.0'
+    version: '>=5'
   - name: community.aws
-    version: '>=3.2.0'
+    version: '>=5'
diff --git a/Ansible/update.yaml b/Ansible/update.yaml
index 7fde537..f728f08 100644
--- a/Ansible/update.yaml
+++ b/Ansible/update.yaml
@@ -123,8 +123,9 @@
       become: false
       delegate_to: localhost
       run_once: true
-      community.aws.aws_ssm_parameter_store:
+      community.aws.ssm_parameter:
         name: &send_sms_param /amilive/prod/send_sms_notifications
+        region: &region eu-west-2
         state: present
         value: "false"
 
@@ -172,7 +173,8 @@
       become: false
       delegate_to: localhost
       run_once: true
-      community.aws.aws_ssm_parameter_store:
+      community.aws.ssm_parameter:
         name: *send_sms_param
+        region: *region
         state: present
         value: "true"
-- 
GitLab