From ee1b2e0140d7f7a5715fe43f3d8783d8e0b28b01 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 9 Jan 2024 12:47:44 +0100 Subject: [PATCH] Optimized runtime parameter --- constructor.yml | 2 +- group_vars/all | 5 ++--- roles/update-docker/tasks/main.yml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/constructor.yml b/constructor.yml index d0715d3e..be2e1259 100644 --- a/constructor.yml +++ b/constructor.yml @@ -5,7 +5,7 @@ become: true roles: - role: update - when: execute_updates | bool + when: mode_update | bool - name: setup standard wireguard hosts: wireguard_server diff --git a/group_vars/all b/group_vars/all index 3690559a..e67437dc 100644 --- a/group_vars/all +++ b/group_vars/all @@ -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 diff --git a/roles/update-docker/tasks/main.yml b/roles/update-docker/tasks/main.yml index c0576bf5..932a7aa1 100644 --- a/roles/update-docker/tasks/main.yml +++ b/roles/update-docker/tasks/main.yml @@ -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: