Optimized runtime parameter

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-09 12:47:44 +01:00
parent 1c31f82f7c
commit ee1b2e0140
3 changed files with 4 additions and 5 deletions

View File

@ -5,7 +5,7 @@
become: true
roles:
- role: update
when: execute_updates | bool
when: mode_update | bool
- name: setup standard wireguard
hosts: wireguard_server

View File

@ -10,6 +10,8 @@ backups_folder_path: "/Backups/" # Path to the backups folder
mode_reset: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
mode_verbose: false # Prints well formated debug information
mode_test: false # Executes test routines instead of productive routines
mode_update: true # Executes updates
mode_backup: true # Activates the backup before the update procedure
# Server Tact Variables
@ -60,9 +62,6 @@ path_system_lock_script: "{{path_administrator_scripts}}system-maintenanc
# Runtime Variables for Process Control
activate_all_timers: false # Activates all timers, independend if the handlers had been triggered
nginx_matomo_tracking: false # Activates matomo tracking on all html pages
execute_updates: true # Executes updates
force_backup_before_update: true # Activates the backup before the update procedure
# System maintenance Services

View File

@ -2,7 +2,7 @@
systemd:
name: backup-docker-to-local-everything.service
state: started
when: force_backup_before_update | bool
when: mode_backup | bool
- name: create {{update_docker_script}}
copy: