We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e107d1 commit f13a760Copy full SHA for f13a760
etc/kayobe/ansible/tools/upload-database-backup-s3.yml
@@ -2,20 +2,21 @@
2
# This playbook uploads MariaDB backups to an AWS S3 object store.
3
# Can be linked as a post hook for overcloud-database-backup.
4
5
-- hosts: controllers[0]
+- name: Upload MariaDB backups to S3
6
+ hosts: controllers[0]
7
vars:
8
backup_directory: "/var/lib/docker/volumes/mariadb_backup/_data"
9
kayobe_venv: "{{ virtualenv_path }}/kayobe"
10
tasks:
11
- name: Ensure AWS S3 module prerequisites are available
- pip:
12
+ ansible.builtin.pip:
13
name:
14
- boto3
15
- botocore
16
virtualenv: "{{ kayobe_venv }}"
17
18
- name: Build backup file list
- find:
19
+ ansible.builtin.find:
20
paths: "{{ backup_directory }}"
21
become: True
22
register: backups
0 commit comments