ansible/cron/hourly-restarts.yaml
2023-11-04 12:32:46 +05:30

19 lines
465 B
YAML

---
- name: Hourly Restarts (ALL NODES)
hosts: privfrontends
vars:
services:
- invidious-invidious-1
- breezewiki
- anonymousoverflow-anonymousoverflow-1
- simplytranslate-simplytranslate-1
- libreddit-libreddit-1
- teddit
- nitter-nitter-1
tasks:
- name: Do thing
ansible.builtin.command: docker restart {{ item }}
register: out
changed_when: out.rc != 0
with_items: "{{ services }}"