ansible/cron/caddy-builds-pubnix.yaml

13 lines
475 B
YAML
Raw Normal View History

2023-07-14 21:16:51 +05:30
# IMPORTANT: Inventory file for pubnix is stored in semaphore, not inventory.yml
---
- name: Caddy Builds on Pubnix (Weekly Cron)
hosts: pubnix
tasks:
- name: Do the thing
2023-09-04 19:14:50 +05:30
ansible.builtin.command: bash -c 'xcaddy build --with github.com/aksdb/caddy-cgi/v2@master --output /tmp/caddy && mv /tmp/caddy /usr/local/bin'
2023-07-14 21:16:51 +05:30
register: out
changed_when: out.rc != 0
- name: Print output of thing
ansible.builtin.debug:
var: out.stderr_lines