initial commit
This commit is contained in:
parent
745591c3b9
commit
a4c026169c
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
Copyright (c) 2021 "Stichting Disroot.org"
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
cronjobs:
|
||||
- "# m h dom mon dow user command"
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
- name: Add CRON jobs to /etc/crontab
|
||||
template: src=crontab dest=/etc/crontab owner=root group=root mode=0644
|
||||
with_items: "{{ cronjobs }}"
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# {{ ansible_managed }}
|
||||
#
|
||||
# /etc/crontab: system-wide crontab
|
||||
# Unlike any other crontab you don't have to run the `crontab'
|
||||
# command to install the new version when you edit this file
|
||||
# and files in /etc/cron.d. These files also have username fields,
|
||||
# that none of the other crontabs do.
|
||||
|
||||
SHELL=/bin/sh
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
# m h dom mon dow user command
|
||||
8 * * * * root cd / && run-parts --report /etc/cron.hourly
|
||||
27 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
|
||||
50 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
|
||||
43 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
|
||||
{% for item in cronjobs %}
|
||||
{{ item }}
|
||||
{% endfor %}
|
Loading…
Reference in New Issue