From 8bfad8550407c2111cd892e1d8dfc03090b97510 Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Fri, 13 Nov 2026 18:24:13 +0100 Subject: [PATCH] Fix acme.sh haproxy hot update under dash --- tasks/acmesh.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tasks/acmesh.yml b/tasks/acmesh.yml index 6bfa1f0..4b99375 100644 --- a/tasks/acmesh.yml +++ b/tasks/acmesh.yml @@ -10,6 +10,17 @@ - socat become: true +# acme.sh 3.1.1 (Debian 13 package) sends "set ssl cert" with `echo -e`, +# which dash (/bin/sh) does not support: haproxy receives "-e set ssl cert" +# and the hot update fails. Apply the upstream fix (printf '%b\n'). +# No-op once the packaged hook is fixed. +- name: Fix acme.sh haproxy deploy hook hot update under dash + ansible.builtin.replace: + path: /usr/share/acme.sh/deploy/haproxy.sh + regexp: 'echo -e ''(\$\{_cmdpfx\}set ssl cert )' + replace: 'printf ''%b\\n'' ''\1' + become: true + # Always run: also covers instances where acme.sh is already installed - name: Ensure to install cronjob ansible.builtin.command: