Implemented variable for fresh configuration

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-06 14:31:02 +01:00
parent b909e87228
commit 68613545b2
2 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,5 @@
# General
reset_files: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
verbose: false # Prints well formated debug information
top_domain: "localhost" # Change this in inventory to your domain
ip4_address: "127.0.0.1" # Change thie in inventory to the ip address of your server

View File

@ -41,6 +41,12 @@
on_calendar: "{{on_calendar_backup_docker_to_local}}"
when: run_once_backup_docker_to_local is not defined
- name: "reset {{ backup_docker_to_local_folder }}databases.csv"
file:
path: "{{ backup_docker_to_local_folder }}databases.csv"
state: absent
when: reset_files | bool and run_once_backup_docker_to_local is not defined
- name: seed database values
command:
cmd: "python database_entry_seeder.py databases.csv {{database_instance}} {{database_databasename}} {{database_username}} {{database_password}}"