Copy script to dif location and add cronjob to root
This commit is contained in:
parent
e698c4a809
commit
1ca719c43f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user