ansible/cron/hourly-restarts.yaml

39 lines
957 B
YAML
Raw Normal View History

2023-07-20 19:03:45 +05:30
---
- name: Hourly Restarts (ALL NODES)
hosts: docker,privfrontends
vars:
services:
- invidious-invidious-1
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 }}"
2023-07-20 19:03:45 +05:30
- name: Hourly Restarts (SOLEIL+REST)
hosts: docker,us,in
vars:
services:
- breezewiki
- anonymousoverflow-anonymousoverflow-1
- simplytranslate
- scribe
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 }}"
2023-07-20 19:03:45 +05:30
- name: Hourly Restarts (PIZZA+REST)
hosts: privfrontends
vars:
services:
- libreddit-libreddit-1
- teddit
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 }}"