Update to 2021-05-06 16:00

master
Daniel Berteaud 4 years ago
parent bfea217845
commit 10117271e9
  1. 2
      roles/matrix_synapse/defaults/main.yml
  2. 6
      roles/rabbitmq_server/tasks/install.yml
  3. 3
      roles/rabbitmq_server/templates/post-backup.j2
  4. 5
      roles/rabbitmq_server/templates/pre-backup.j2

@ -1,7 +1,7 @@
--- ---
# Synapse version to deploy # Synapse version to deploy
synapse_version: 1.33.0 synapse_version: 1.33.1
# Should ansible handle Synapse upgrades ? If false, only initial install will be done # Should ansible handle Synapse upgrades ? If false, only initial install will be done
synapse_manage_upgrade: True synapse_manage_upgrade: True

@ -6,3 +6,9 @@
- rabbitmq-server - rabbitmq-server
tags: rabbitmq tags: rabbitmq
- name: Install pre/post backup hooks
template: src={{ item }}-backup.j2 dest=/etc/backup/{{ item }}.d/rabbitmq mode=755
loop:
- pre
- post
tags: rabbitmq

@ -0,0 +1,3 @@
#!/bin/bash -e
rm -f /home/lbkp/rabbitmq/definitions.json

@ -0,0 +1,5 @@
#!/bin/bash -e
mkdir -p /home/lbkp/rabbitmq/
/usr/sbin/rabbitmqctl export_definitions --format json definitions.json
mv /var/lib/rabbitmq/definitions.json /home/lbkp/rabbitmq/
Loading…
Cancel
Save