Copy script to dif location and add cronjob to root

This commit is contained in:
staticsafe 2019-07-12 23:11:37 -04:00
parent e698c4a809
commit 1ca719c43f
1 changed files with 7 additions and 5 deletions

View File

@ -5,13 +5,15 @@
- name: Copy cron script
copy:
src: apt-maintenance.sh
dest: /etc/cron.daily/apt-maintenance.sh
dest: /root/scripts/apt-maintenance.sh
owner: root
group: root
mode: 0755
backup: no
- name: Restart cron daemon
service:
name: cron
state: restarted
- name: Add apt-maintenance cronjob
cron:
name: apt-maintenance
special_time: daily
job: /root/scripts/apt-maintenance.sh
backup: yes