env-ansible/tasks/miner/cron/ansible.yml

27 lines
587 B
YAML

---
# System tasks for mining machines.
## Performance ##
- name: Miner | Account Management | Cron | Ansible | Daily Performance Reboot
cron:
user: ansible
name: Daily Performance Reboot
job: sudo reboot
special_time: daily
state: present
disabled: no
## Security ##
- name: Miner | Account Management | Cron | Ansible | Daily Security Update [apt]
cron:
user: ansible
name: Daily Security Update
job: sudo apt update && sudo apt dist-upgrade -y
special_time: reboot
state: present
disabled: yes
when: ansible_pkg_mgr == "apt"