Prevent unnecessary execution of certbot
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
force: no
|
||||||
|
register: collabora_http
|
||||||
- name: disable default site and enable collabora site
|
- name: disable default site and enable collabora site
|
||||||
block:
|
block:
|
||||||
- name: disable default site
|
- name: disable default site
|
||||||
@@ -19,7 +21,7 @@
|
|||||||
- name: run certbot
|
- name: run certbot
|
||||||
command:
|
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 }}
|
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
|
- include: ssl-dev.yml
|
||||||
when: ansible_domain == 'dev'
|
when: ansible_domain == 'dev'
|
||||||
- name: add collabora https site
|
- name: add collabora https site
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
force: no
|
||||||
|
register: drone_http
|
||||||
- name: disable default site and enable drone site
|
- name: disable default site and enable drone site
|
||||||
block:
|
block:
|
||||||
- name: disable default site
|
- name: disable default site
|
||||||
@@ -19,7 +21,7 @@
|
|||||||
- name: run certbot
|
- name: run certbot
|
||||||
command:
|
command:
|
||||||
cmd: certbot --apache --non-interactive --keep-until-expiring --no-eff-email --email {{ admin_mail }} --redirect --renew-with-new-domains --agree-tos -d {{ ci_domain }}
|
cmd: certbot --apache --non-interactive --keep-until-expiring --no-eff-email --email {{ admin_mail }} --redirect --renew-with-new-domains --agree-tos -d {{ ci_domain }}
|
||||||
when: ansible_domain != 'dev'
|
when: ansible_domain != 'dev' and drone_http.changed
|
||||||
- include: ssl-dev.yml
|
- include: ssl-dev.yml
|
||||||
when: ansible_domain == 'dev'
|
when: ansible_domain == 'dev'
|
||||||
- name: add drone https site
|
- name: add drone https site
|
||||||
|
|||||||
Reference in New Issue
Block a user