Refactored and solved matomo variable bug

This commit is contained in:
2025-02-17 11:04:40 +01:00
parent 62f9bab052
commit 326f048639
10 changed files with 31 additions and 34 deletions

View File

@@ -0,0 +1,20 @@
# This file is also used by docker-matrix-compose
- name: Display all database variables
debug:
msg: |
database_instance: "{{ database_instance | default('undefined') }}"
database_name: "{{ database_name | default('undefined') }}"
database_username: "{{ database_username | default('undefined') }}"
database_password: "{{ database_password | default('undefined') }}"
when: enable_debug | bool
- name: seed database values
command:
cmd: "python database_entry_seeder.py databases.csv {{database_instance}} {{database_name}} {{database_username}} {{database_password}}"
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