certbot: configure remote servers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jérémy Lecour 2021-05-03 11:44:59 +02:00 committed by Jérémy Lecour
parent 1caae2437a
commit 92f28d85fe
2 changed files with 9 additions and 0 deletions

View file

@ -2,3 +2,5 @@
certbot_work_dir: /var/lib/letsencrypt
certbot_custom_crontab: True
certbot_hooks_sync_remote_servers: []

View file

@ -29,6 +29,13 @@
owner: root
group: root
- name: "sync_remote is configured with servers"
lineinfile:
dest: /etc/letsencrypt/renewal-hooks/deploy/sync_remote.cf
regexp: "^servers\b"
line: "servers=\"{{ certbot_hooks_sync_remote_servers | join(' ') }}\""
create: yes
- name: Move commit-etc.sh to z-commit-etc.sh if present
command: "mv /etc/letsencrypt/renewal-hooks/deploy/commit-etc.sh /etc/letsencrypt/renewal-hooks/deploy/z-commit-etc.sh"
args: