Added cleanup mode for certs and solved peertube variable bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-29 17:01:54 +01:00
parent 6c9a069cf0
commit 21728ab60f
2 changed files with 8 additions and 1 deletions

View File

@ -6,4 +6,5 @@ mode_debug: 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
mode_setup: false # Execute the setup and initializing procedures
mode_setup: false # Execute the setup and initializing procedures
mode_cleanup: false # Cleanup unused files and configurations

View File

@ -12,6 +12,12 @@
{{ '--test-cert' if mode_test | bool else '' }}
when: enable_one_letsencrypt_cert_for_all and run_once_recieve_certificate is not defined
- name: "cleanup dedicated cert for {{ domain }}"
command: >-
certbot delete --cert-name {{ domain }} --non-interactive
when: mode_cleanup and enable_one_letsencrypt_cert_for_all and run_once_recieve_certificate is not defined
- name: run the recieve_certificate tasks once
set_fact:
run_once_recieve_certificate: true