ansible/cron/hourly-restarts.yaml

19 lines
465 B
YAML
Raw Normal View History

2023-07-20 19:03:45 +05:30
---
- name: Hourly Restarts (ALL NODES)
2023-09-14 14:42:16 +05:30
hosts: privfrontends
2023-07-20 19:03:45 +05:30
vars:
services:
- invidious-invidious-1
- breezewiki
- anonymousoverflow-anonymousoverflow-1
2023-07-20 19:16:51 +05:30
- simplytranslate-simplytranslate-1
2023-07-20 19:03:45 +05:30
- libreddit-libreddit-1
- teddit
2023-11-04 12:32:46 +05:30
- nitter-nitter-1
2023-07-20 19:03:45 +05:30
tasks:
- name: Do thing
2023-07-20 19:11:47 +05:30
ansible.builtin.command: docker restart {{ item }}
2023-07-20 19:03:45 +05:30
register: out
changed_when: out.rc != 0
2023-07-20 19:11:47 +05:30
with_items: "{{ services }}"