From cc4e6ee27550dd0cc8c3e7e075b3584905e0dc92 Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 5 Jul 2024 11:53:34 +0200 Subject: [PATCH] fix: use bash instead of sh --- roles/x509/tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/x509/tasks/main.yml b/roles/x509/tasks/main.yml index cf380de..b58e9e8 100644 --- a/roles/x509/tasks/main.yml +++ b/roles/x509/tasks/main.yml @@ -1,6 +1,9 @@ --- - name: Install acme.sh - ansible.builtin.command: - cmd: curl https://get.acme.sh | INSTALLONLINE=1 LE_WORKING_DIR=/etc/x509 sh # noqa: command-instead-of-module + ansible.builtin.shell: + cmd: | + set -o pipefail + curl https://get.acme.sh | INSTALLONLINE=1 LE_WORKING_DIR=/etc/x509 sh # noqa: command-instead-of-module + executable: /bin/bash creates: /etc/x509