Add recovery testing to deploy.yml

This commit is contained in:
madereddy
2023-12-12 09:28:09 -05:00
parent 9eb7f0ee65
commit ca6d67393e
5 changed files with 30 additions and 10 deletions
+11
View File
@@ -4,6 +4,17 @@
- name: Clone repo
ansible.builtin.command:
cmd: git clone http://192.168.1.157:3000/jeet/OCI_Build.git
- name: Pull backups
shell: |
unset HISTFILE
export RESTIC_REPOSITORY="s3:idnfqwbge7v2.compat.objectstorage.us-ashburn-1.oraclecloud.com/madereddy-docker-backup"
export AWS_ACCESS_KEY_ID="5195c76754bda8137f89f7141e2915f203eeeae8"
export AWS_SECRET_ACCESS_KEY="PYWvfbsdu6ZFrtTZBBhnWVXmWCp40/cRI/C3yphVOHI="
export RESTIC_PASSWORD= ei&SNrq!7t^Zqkc2#^H6DYvR5^X32HGnUUnd#n
restic init
cd ~/OCI_Build/docker
restic restore latest:/gcloud --target ./
- name: Start container using Docker Compose
ansible.builtin.command:
+2
View File
@@ -22,6 +22,7 @@
- tar
- net-tools
- unzip
- restic
state: present
when: ansible_os_family == "Debian"
@@ -43,6 +44,7 @@
- tar
- net-tools
- unzip
- restic
state: present
when: ansible_os_family == "RedHat"