ansible-playbooks/ubuntu/roles/apt-maintenance/tasks/main.yml

18 lines
366 B
YAML

---
# This task adds a daily cron job to do apt related maintenance
# Update repos, update packages, autoremove packages
- name: Copy cron script
copy:
src: apt-maintenance.sh
dest: /etc/cron.daily/apt-maintenance.sh
owner: root
group: root
mode: 0744
backup: no
- name: Restart cron daemon
service:
name: cron
state: restarted