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

19 lines
372 B
YAML
Raw Normal View History

2019-07-08 00:00:42 +00:00
---
# 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: yes
- name: Restart cron daemon
service:
name: cron
state: restarted