ansible/cron/hourly-restarts.yaml

19 lines
393 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
2024-01-10 21:36:39 +05:30
- anonymousoverflow
- mozhi
- redlib
2023-07-20 19:03:45 +05:30
- teddit
2024-01-10 21:36:39 +05:30
- nitter
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 }}"