From 8932b33a9c10eff1122386bfcd28fc7491aa24e3 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 8 Oct 2022 21:59:27 +0300 Subject: [PATCH] Ansible: Stop Am I Live notifications during updates. --- Ansible/update.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Ansible/update.yaml b/Ansible/update.yaml index 3ea59e2..e4d5aa8 100644 --- a/Ansible/update.yaml +++ b/Ansible/update.yaml @@ -116,6 +116,18 @@ pkg_upgrade is changed or fw_update is changed }} +- name: Stop Am I Live SMS notifications + hosts: all + tasks: + - name: Stop Am I Live SMS notifications + become: false + delegate_to: localhost + run_once: true + community.aws.aws_ssm_parameter_store: + name: &send_sms_param /amilive/prod/send_sms_notifications + state: present + value: "false" + - name: Reboot NS1 hosts: - ns1 @@ -151,3 +163,15 @@ reboot: tags: - reboot + +- name: Resume Am I Live SMS notifications + hosts: all + tasks: + - name: Resume Am I Live SMS notifications + become: false + delegate_to: localhost + run_once: true + community.aws.aws_ssm_parameter_store: + name: *send_sms_param + state: present + value: "true" -- GitLab