mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 04:49:40 +01:00
Added cleanup mode for certs and solved peertube variable bug
This commit is contained in:
parent
6c9a069cf0
commit
21728ab60f
@ -7,3 +7,4 @@ mode_test: false # Executes test routines instead of productive routines
|
|||||||
mode_update: true # Executes updates
|
mode_update: true # Executes updates
|
||||||
mode_backup: true # Activates the backup before the update procedure
|
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
|
@ -12,6 +12,12 @@
|
|||||||
{{ '--test-cert' if mode_test | bool else '' }}
|
{{ '--test-cert' if mode_test | bool else '' }}
|
||||||
when: enable_one_letsencrypt_cert_for_all and run_once_recieve_certificate is not defined
|
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
|
- name: run the recieve_certificate tasks once
|
||||||
set_fact:
|
set_fact:
|
||||||
run_once_recieve_certificate: true
|
run_once_recieve_certificate: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user