Skip to content

Commit b1ba6e0

Browse files
committed
Force new certs if acme account changes
1 parent ebe49ed commit b1ba6e0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

roles/haproxy/tasks/acme.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@
5151
--eab-hmac-key "{{ haproxy_acme_eab_hmac_key }}"
5252
--server "{{ haproxy_acme_server }}"
5353
creates: "{{ haproxy_acme_ca_dir }}/account.json"
54+
register: "acme_account"
5455
become: true
5556
become_user: "acme"

roles/haproxy/tasks/get_acme_certs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
--dnssleep 3
3939
--server "{{ haproxy_acme_server }}"
4040
--domain "{{ item }}"
41+
{{ acme_account.changed | ternary('--force', '') }}
4142
environment:
4243
ACMEDNS_BASE_URL: "{{ haproxy_acmedns.baseurl }}"
4344
ACMEDNS_USERNAME: "{{ haproxy_acmedns.username }}"

0 commit comments

Comments
 (0)