ansible-base/roles/auto_upgrade/tasks/crontask.yml

14 lines
414 B
YAML
Raw Permalink Normal View History

2020-05-15 22:22:26 +02:00
---
- name: crontask configured
cron:
name: "Auto upgrade"
user: root
minute: "{{ cron_upgrade_minute }}"
hour: "{{ cron_upgrade_hour }}"
day: "{{ cron_upgrade_day }}"
month: "{{ cron_upgrade_month }}"
weekday: "{{ cron_upgrade_weekday }}"
job: "{{ cron_upgrade_job }}"
notify: restart cron
when: auto_upgrade # Only if auto upgrade is enabled for this host or group of hosts