mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Improved performance by executing tasks just once per host
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
dependencies:
|
||||
- certbot-nginx
|
||||
- nginx-certbot
|
||||
|
@@ -1,6 +1,13 @@
|
||||
- name: create nginx letsencrypt config file
|
||||
template: src=letsencrypt.conf.j2 dest={{nginx_servers_directory}}letsencrypt.conf
|
||||
notify: restart nginx
|
||||
when: run_once_letsencrypt is not defined
|
||||
|
||||
- name: flush nginx service
|
||||
meta: flush_handlers
|
||||
when: run_once_letsencrypt is not defined
|
||||
|
||||
- name: run the letsencrypt logic just once
|
||||
set_fact:
|
||||
run_once_letsencrypt: true
|
||||
when: run_once_letsencrypt is not defined
|
||||
|
Reference in New Issue
Block a user