initial commit

This commit is contained in:
muppeth 2021-06-20 21:34:14 +02:00
parent 745591c3b9
commit a4c026169c
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
4 changed files with 30 additions and 1 deletions

View File

@ -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:

4
defaults/main.yml Normal file
View File

@ -0,0 +1,4 @@
---
cronjobs:
- "# m h dom mon dow user command"

6
tasks/main.yml Normal file
View File

@ -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 }}"

19
templates/crontab Normal file
View File

@ -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 %}