From a6a1d0e241e660261faf15ce5f5eee5d21e82303 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 4 Sep 2023 19:14:50 +0530 Subject: [PATCH] bash -c --- cron/caddy-builds-pubnix.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron/caddy-builds-pubnix.yaml b/cron/caddy-builds-pubnix.yaml index 845cdd5..cb4e6f1 100644 --- a/cron/caddy-builds-pubnix.yaml +++ b/cron/caddy-builds-pubnix.yaml @@ -4,7 +4,7 @@ hosts: pubnix tasks: - name: Do the thing - ansible.builtin.command: xcaddy build --with github.com/aksdb/caddy-cgi/v2@master --output /tmp/caddy && mv /tmp/caddy /usr/local/bin + ansible.builtin.command: bash -c 'xcaddy build --with github.com/aksdb/caddy-cgi/v2@master --output /tmp/caddy && mv /tmp/caddy /usr/local/bin' register: out changed_when: out.rc != 0 - name: Print output of thing