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