Update to 2021-02-10 17:00

master
Daniel Berteaud 3 years ago
parent 8fa6ebcb04
commit 4d3840e257
  1. 1
      roles/appsmith/meta/main.yml
  2. 3
      roles/appsmith/tasks/archive_pre.yml
  3. 8
      roles/appsmith/tasks/install.yml
  4. 3
      roles/appsmith/templates/post-backup.sh.j2
  5. 3
      roles/appsmith/templates/pre-backup.sh.j2

@ -3,6 +3,7 @@
dependencies:
- role: mkdir
- role: maven
- role: repo_mongodb
- role: redis_server
when: appsmith_redis_url | urlsplit('hostname') in ['localhost','127.0.0.1']
- role: mongodb_server

@ -19,3 +19,6 @@
delegate_to: "{{ inventory_hostname }}"
tags: appsmith
- name: Dump mongo database
command: mongodump --uri {{ appsmith_mongo_url }} --out {{ appsmith_root_dir }}/archives/{{ appsmith_current_version }}/
tags: appsmith

@ -5,6 +5,7 @@
name:
- nodejs
- java-11-openjdk
- mongodb-org-tools
tags: appsmith
- name: Detect exact JRE version
@ -92,3 +93,10 @@
systemd: daemon_reload=True
when: appsmith_units.results | selectattr('changed','equalto',True) | list | length > 0
tags: appsmith
- name: Install pre/post backup hoooks
template: src={{ item }}-backup.sh.j2 dest=/etc/backup/{{ item }}.d/appsmith mode=700
loop:
- pre
- post
tags: appsmith

@ -0,0 +1,3 @@
#!/bin/bash -e
rm -rf {{ appsmith_root_dir }}/backup/*

@ -0,0 +1,3 @@
#!/bin/bash -e
mongodump --uri {{ appsmith_mongo_url }} --out {{ appsmith_root_dir }}/backup
Loading…
Cancel
Save