Commit 6c6768f7 authored by Julien Gomes Dias's avatar Julien Gomes Dias
Browse files

Merge branch 'uptime-kuma' into 'master'

[add] Add cron to stop uptime during the night

See merge request !13
parents 7c1c55dc 9436bc59
......@@ -38,3 +38,21 @@
import_role:
name: _app_monit
when: monit_request is defined and monit_request != ''
- name: cron to stop uptime-kuma during the night
cron:
name: "stop uptime"
hour: "{{ uptime_stop_hour }}"
minute: "{{ uptime_stop_minute }}"
job: "/usr/bin/docker stop uptime-kuma"
tags:
- cron_uptime
- name: "cron to start uptime-kuma during the night"
cron:
name: "start start"
hour: "{{ uptime_start_hour | mandatory }}"
minute: "{{ uptime_start_minute | mandatory }}"
job: "/usr/bin/docker start uptime-kuma"
tags:
- cron_uptime
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment