Optimized database backup seeder implementation

This commit is contained in:
2025-04-21 16:16:54 +02:00
parent f8c984d6c2
commit b0dd574c26
7 changed files with 24 additions and 18 deletions

View File

@@ -23,14 +23,19 @@
database_password is defined)
- name: "seed database values in directory {{ backup_docker_to_local_folder }}"
command:
cmd: "python database_entry_seeder.py databases.csv {{database_instance}} {{database_name}} {{database_username}} {{database_password}}"
command: >
python database_entry_seeder.py databases.csv
"{{ database_instance }}"
"{{ database_name }}"
"{{ database_username }}"
"{{ database_password }}"
args:
chdir: "{{ backup_docker_to_local_folder }}"
when: >
database_instance is defined and
database_name is defined and
database_username is defined and
database_password is defined
when:
- database_instance is defined
- database_name is defined
- database_username is defined
- database_password is defined
- name: Set file permissions for databases.csv to be readable, writable, and executable by root only
ansible.builtin.file: