Prevent unnecessary execution of certbot

This commit is contained in:
2020-01-04 15:48:55 +01:00
parent 7a6cb9697d
commit 061656739b
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -6,6 +6,8 @@
owner: root
group: root
mode: 0644
force: no
register: collabora_http
- name: disable default site and enable collabora site
block:
- name: disable default site
@@ -19,7 +21,7 @@
- name: run certbot
command:
cmd: certbot --apache --non-interactive --keep-until-expiring --no-eff-email --email {{ admin_mail }} --redirect --renew-with-new-domains --agree-tos -d {{ collabora_domain }}
when: ansible_domain != 'dev'
when: ansible_domain != 'dev' and collabora_http.changed
- include: ssl-dev.yml
when: ansible_domain == 'dev'
- name: add collabora https site