Prevent unnecessary execution of certbot
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
force: no
|
||||
register: drone_http
|
||||
- name: disable default site and enable drone 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 {{ ci_domain }}
|
||||
when: ansible_domain != 'dev'
|
||||
when: ansible_domain != 'dev' and drone_http.changed
|
||||
- include: ssl-dev.yml
|
||||
when: ansible_domain == 'dev'
|
||||
- name: add drone https site
|
||||
|
||||
Reference in New Issue
Block a user