Working on adding mysql backups to the new docker_borg_backup role
This commit is contained in:
1 parent
c577141055
commit
bc21a7bf42
8 files changed
+94
-13
No files matched your search
@@ -36,6 +36,20 @@
|
||||
async: "{{ borg_async_time }}"
|
||||
poll: "{{ borg_poll_time }}"
|
||||
|
||||
- name: Take mysql backups
|
||||
ansible.builtin.import_role:
|
||||
name: mysql_borg_backup
|
||||
vars:
|
||||
mysql_target: "{{ item['mysql_backup_target'] }}"
|
||||
mysql_target_port: "{{ item['mysql_backup_target_port'] }}"
|
||||
mysql_target_username: "{{ item['mysql_backup_target_username'] }}"
|
||||
mysql_target_password: "{{ item['mysql_backup_target_password'] }}"
|
||||
mysql_target_database_name: "{{ item['mysql_backup_target_database_name'] }}"
|
||||
mysql_borg_repo_name: "{{ item['mysql_backup_borg_repo_name'] }}"
|
||||
mysql_borg_password: "{{ item['mysql_backup_borg_password'] }}"
|
||||
loop: "{{ mysql_backups }}"
|
||||
when: mysql_backups | default([]) | length != 0
|
||||
|
||||
- name: Start containers
|
||||
community.docker.docker_container:
|
||||
name: "{{ item }}"
|
||||
|
||||
Reference in new issue
Block a user