updated schedules in pkg state
This commit is contained in:
parent
a9c258b08f
commit
378111d529
@ -1,8 +1,20 @@
|
||||
---
|
||||
pkg-clean-task:
|
||||
cron.present:
|
||||
pkg-clean-task-cron:
|
||||
cron.absent:
|
||||
- name: apt-get clean
|
||||
- user: root
|
||||
- minute: {{ range(1, 59) | random }}
|
||||
- hour: {{ range(1, 23) | random }}
|
||||
- identifier: pkg-clean-task
|
||||
|
||||
pkg-update-task-schedule:
|
||||
schedule.present:
|
||||
- name: pkg-update-task-schedule
|
||||
- function: pkg.refresh_db
|
||||
- minutes: 24
|
||||
|
||||
pkg-clean-task-schedule:
|
||||
schedule.present:
|
||||
- name: pkg-clean-task-schedule
|
||||
- function: cmd.run
|
||||
- job_args: apt-get clean
|
||||
- minutes: 12
|
||||
- hours: 12
|
||||
|
Loading…
Reference in New Issue
Block a user