ansible-based crons
This commit is contained in:
12
cron/caddy-builds-pubnix.yaml
Normal file
12
cron/caddy-builds-pubnix.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
# 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
|
||||
ansible.builtin.command: xcaddy build github.com/jung-kurt/caddy-cgi=/root/caddy/caddy-cgi --output /usr/local/bin/caddy
|
||||
register: out
|
||||
changed_when: out.rc != 0
|
||||
- name: Print output of thing
|
||||
ansible.builtin.debug:
|
||||
var: out.stderr_lines
|
||||
Reference in New Issue
Block a user