WIP: Setup of a mail server #9

Draft
otthorn wants to merge 151 commits from mailserver into master
2 changed files with 4 additions and 5 deletions
Showing only changes of commit 495f4c4343 - Show all commits

View file

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

View file

@ -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