From bdca7366ed47e2e52d86a71ee7eb749f1c788f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20H=C3=B6sel?= Date: Fri, 4 Jun 2021 23:08:40 +0200 Subject: [PATCH] fix(step_ca): prevent error when overwriting step-ca executable (#68) --- roles/step_ca/tasks/install.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/step_ca/tasks/install.yml b/roles/step_ca/tasks/install.yml index 81a24fcf..71226aa9 100644 --- a/roles/step_ca/tasks/install.yml +++ b/roles/step_ca/tasks/install.yml @@ -26,6 +26,12 @@ remote_src: yes retries: 3 delay: 3 + # step-ca needs to be stopped in order to overwrite the executable + - name: Stop step-ca process + systemd: + name: step-ca + state: stopped + when: step_ca_present.stat.exists - name: Install step-ca binary shell: > set -o pipefail &&