Commit 8932b33a authored by nimrod's avatar nimrod
Browse files

Ansible: Stop Am I Live notifications during updates.

parent 45340d67
Loading
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -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"