Merge "Avoid hardcoding /home/stack in cli-undercloud-db-backup.yaml."

This commit is contained in:
Zuul 2021-07-07 23:09:15 +00:00 committed by Gerrit Code Review
commit 0b9fef642b
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@
- name: Create DB Backup for the undercloud
vars:
tripleo_backup_and_restore_service_manager: false
tripleo_backup_and_restore_mysql_backup_file: "/home/stack/openstack-backup-mysql-{{ lookup('pipe', 'date +%F_%H_%M_%S') }}.sql"
tripleo_backup_and_restore_mysql_grants_file: "/home/stack/openstack-backup-mysql-grants-{{ lookup('pipe', 'date +%F_%H_%M_%S') }}.sql"
tripleo_backup_and_restore_mysql_backup_file: "{{ lookup('env', 'HOME') }}/openstack-backup-mysql-{{ lookup('pipe', 'date +%F_%H_%M_%S') }}.sql"
tripleo_backup_and_restore_mysql_grants_file: "{{ lookup('env', 'HOME') }}/openstack-backup-mysql-grants-{{ lookup('pipe', 'date +%F_%H_%M_%S') }}.sql"
include_role:
name: backup_and_restore
tasks_from: db_backup.yml