User handlers to run when something changed
continuous-integration/drone/push Build is failing Details

mailserver
otthorn 3 years ago
parent 8b66ba059b
commit 99a46af244

@ -0,0 +1,3 @@
---
- name: Generate certificates
command: "certbot certonly --non-interactive --config /etc/letsencrypt/conf.d/{{ certbot.certname }}.ini"

@ -21,8 +21,4 @@
src: "conf.ini.j2"
dest: "/etc/letsencrypt/conf.d/{{ certbot.certname }}.ini"
mode: 0644
register: certbot_config
- name: Generate new certificates if the configuration changed
command: "certbot certonly --non-interactive --config /etc/letsencrypt/conf.d/{{ certbot.certname }}.ini"
when: certbot_config.changed
notify: Generate certificates

Loading…
Cancel
Save