diff --git a/cron/README.md b/cron/README.md new file mode 100644 index 0000000..55c42a3 --- /dev/null +++ b/cron/README.md @@ -0,0 +1,2 @@ +# crons +Things here are cronjobs executed by ansible-semaphore. diff --git a/cron/caddy-builds-pubnix.yaml b/cron/caddy-builds-pubnix.yaml new file mode 100644 index 0000000..0e175c9 --- /dev/null +++ b/cron/caddy-builds-pubnix.yaml @@ -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 diff --git a/cron/caddy-builds-soleil.yaml b/cron/caddy-builds-soleil.yaml new file mode 100644 index 0000000..06e6f4d --- /dev/null +++ b/cron/caddy-builds-soleil.yaml @@ -0,0 +1,11 @@ +--- +- name: Caddy Builds on Soleil (Weekly Cron) + hosts: core + tasks: + - name: Do the thing + ansible.builtin.command: xcaddy build --with github.com/caddy-dns/rfc2136@master --with github.com/mholt/caddy-ratelimit --output /var/www/caddy-build/bin + register: out + changed_when: out.rc != 0 + - name: Print output of thing + ansible.builtin.debug: + var: out.stderr_lines diff --git a/cron/prune.yaml b/cron/prune.yaml new file mode 100644 index 0000000..20932d7 --- /dev/null +++ b/cron/prune.yaml @@ -0,0 +1,9 @@ +--- +- name: Docker Prunes (Daily Cron) + hosts: docker,backwards,eu,us,in,status + tasks: + - name: Do thing + community.docker.docker_prune: + containers: true + images: true + networks: true