added new cron role with job to update warhammer rss feed nightly
This commit is contained in:
18
roles/cron/tasks/main.yml
Normal file
18
roles/cron/tasks/main.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
# Ensure the script is copied to the target machine
|
||||
- name: Copy the warhammer feed update script
|
||||
copy:
|
||||
src: update_warhammer_feed.sh
|
||||
dest: /usr/local/bin/update_warhammer_feed.sh
|
||||
mode: '0755'
|
||||
owner: root
|
||||
group: root
|
||||
|
||||
# Create the cron job to run the script at 09:10 every day
|
||||
- name: Create cron job for warhammer feed update
|
||||
cron:
|
||||
name: "Update Warhammer RSS Feed"
|
||||
minute: "10"
|
||||
hour: "9"
|
||||
user: root
|
||||
job: "/usr/local/bin/update_warhammer_feed.sh"
|
Reference in New Issue
Block a user