23 lines
621 B
YAML
23 lines
621 B
YAML
- name: Install core user's crontab logCPUandETH
|
|
ansible.builtin.cron:
|
|
name: logCPUandETH
|
|
user: core
|
|
minute: "*"
|
|
hour: "6-23"
|
|
job: "/home/core/Scripte/logCPUandETH"
|
|
|
|
- name: Install core user's crontab Delete /tmp files before rebooting at 4 AM
|
|
ansible.builtin.cron:
|
|
name: delete /tmp/* files before rebooting at 4 AM
|
|
user: core
|
|
minute: "55"
|
|
hour: "3"
|
|
job: "/bin/rm -rf /tmp/*"
|
|
|
|
- name: Install core user's crontab logCPUandETH
|
|
ansible.builtin.cron:
|
|
name: reboot each night at 4.00 AM
|
|
user: core
|
|
minute: "0"
|
|
hour: "4"
|
|
job: "sudo /sbin/shutdown -r now" |