mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 18:03:40 -05:00
fix: update job files
This commit is contained in:
27
templates/nomad_jobs/remove_nzbs.hcl
Normal file
27
templates/nomad_jobs/remove_nzbs.hcl
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user