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

Replace the hardcoded reference to /home/stack by the HOME
environment variable.

Change-Id: I94283e928080a417a5ea505c789e6485a3334129
This commit is contained in:
Jose Luis Franco Arza 2021-07-07 14:43:18 +02:00
parent 2e7bc4390b
commit 06a102a620
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