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
|
- name: Copy cron script
|
||||||
copy:
|
copy:
|
||||||
src: apt-maintenance.sh
|
src: apt-maintenance.sh
|
||||||
dest: /etc/cron.daily/apt-maintenance.sh
|
dest: /root/scripts/apt-maintenance.sh
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
backup: no
|
backup: no
|
||||||
|
|
||||||
- name: Restart cron daemon
|
- name: Add apt-maintenance cronjob
|
||||||
service:
|
cron:
|
||||||
name: cron
|
name: apt-maintenance
|
||||||
state: restarted
|
special_time: daily
|
||||||
|
job: /root/scripts/apt-maintenance.sh
|
||||||
|
backup: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user