mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 09:53:41 -05:00
28 lines
626 B
HCL
28 lines
626 B
HCL
job "remove_nzbs" {
|
|
region = "global"
|
|
datacenters = ["{{ datacenter_name }}"]
|
|
type = "batch"
|
|
|
|
constraint {
|
|
attribute = "${node.unique.name}"
|
|
operator = "regexp"
|
|
value = "rpi"
|
|
}
|
|
|
|
periodic {
|
|
cron = "*/15 * * * * *"
|
|
prohibit_overlap = true
|
|
time_zone = "America/New_York"
|
|
}
|
|
|
|
task "remove_nzbs" {
|
|
driver = "raw_exec"
|
|
config {
|
|
command = "/home/pi/.pyenv/shims/python"
|
|
args = ["/home/pi/repos/bin/bin-sabnzbd/removeNZBs.py"]
|
|
}
|
|
|
|
} // /task do_backups
|
|
|
|
} //job
|