Skip to content

Commit

Permalink
fix: add force option to acme
Browse files Browse the repository at this point in the history
  • Loading branch information
kabbeck committed Dec 20, 2024
1 parent 4df5854 commit 68caa6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deployment/roles/webserver/tasks/acme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@
validate: "visudo -cf %s"

- name: request initial certificate (this may take a while)
command: "sudo -u acme /usr/local/sbin/acme.sh --server letsencrypt --issue --webroot /letsencrypt --domain {{ploy_fqdn}} --home /var/db/acme/.acme.sh"
command: "sudo -u acme /usr/local/sbin/acme.sh --server letsencrypt --issue --webroot /letsencrypt --domain {{ploy_fqdn}} --home /var/db/acme/.acme.sh" --force
args:
chdir: /var/db/acme
creates: "/var/db/acme/certs/{{ploy_fqdn}}/fullchain.cer"
tags: acme_initial

- name: install certificate
command: "sudo -u acme /usr/local/sbin/acme.sh --install-cert -d {{ploy_fqdn}} --key-file /usr/local/etc/nginx/certs/briefkasten.key --fullchain-file /usr/local/etc/nginx/certs/briefkasten.crt"
Expand Down

0 comments on commit 68caa6f

Please sign in to comment.