mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Normalized run_once_, made openresty handlers without when aviable and forced flush in run_once when blocks to avoid handlers with when conditions
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
src: "letsencrypt.conf.j2"
|
||||
dest: "{{nginx.directories.http.global}}letsencrypt.conf"
|
||||
notify: restart openresty
|
||||
when: run_once_letsencrypt is not defined
|
||||
when: run_once_srv_web_7_7_letsencrypt is not defined
|
||||
|
||||
- name: "Set CAA records for all base domains"
|
||||
include_tasks: set-caa-records.yml
|
||||
when:
|
||||
- dns_provider == 'cloudflare'
|
||||
- run_once_letsencrypt is not defined
|
||||
- run_once_srv_web_7_7_letsencrypt is not defined
|
||||
|
||||
- name: flush nginx service
|
||||
meta: flush_handlers
|
||||
when: run_once_letsencrypt is not defined
|
||||
when: run_once_srv_web_7_7_letsencrypt is not defined
|
||||
|
||||
- name: run the letsencrypt logic just once
|
||||
set_fact:
|
||||
run_once_letsencrypt: true
|
||||
when: run_once_letsencrypt is not defined
|
||||
run_once_srv_web_7_7_letsencrypt: true
|
||||
when: run_once_srv_web_7_7_letsencrypt is not defined
|
||||
|
Reference in New Issue
Block a user