infrastructure/roles/heimdall-order/tasks/main.json

36 lines
939 B
JSON
Raw Normal View History

2026-03-31 21:12:54 +02:00
[
{
"name": "directory",
"become": true,
"ansible.builtin.file": {
"state": "directory",
"path": "{{cfg_heimdall_order.directory}}",
"owner": "{{cfg_heimdall_order.user}}"
}
},
{
"name": "file",
"become": true,
"ansible.builtin.copy": {
2026-03-31 21:51:02 +02:00
"content": "{{cfg_heimdall_order.conf}} | to_nice_json",
2026-03-31 21:12:54 +02:00
"dest": "{{cfg_heimdall_order.directory}}/{{cfg_heimdall_order.name}}.hmdl.json"
}
},
{
"name": "cronjob",
"become": true,
"ansible.builtin.cron": {
"state": "present",
"user": "{{cfg_heimdall_order.user}}",
"disabled": false,
"name": "heimdall:{{cfg_heimdall_order.name}}",
2026-03-31 21:51:02 +02:00
"minute": "*/{{cfg_heimdall_order.rate | string}}",
2026-03-31 21:12:54 +02:00
"hour": "*",
"day": "*",
"month": "*",
"weekday": "*",
2026-03-31 21:51:02 +02:00
"job": "{{cfg_heimdall_order.directory}}/heimdall {{cfg_heimdall_order.directory}}/{{cfg_heimdall_order.name}}.hmdl.json --mutex-path=/tmp/heimdall-{{cfg_heimdall_order.name}}.lock"
2026-03-31 21:12:54 +02:00
}
}
]