2026-03-31 21:12:54 +02:00
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"name": "directory",
|
|
|
|
|
"become": true,
|
|
|
|
|
"ansible.builtin.file": {
|
|
|
|
|
"state": "directory",
|
2026-03-31 21:56:12 +02:00
|
|
|
"path": "{{cfg_heimdall_order.directory_conf}}",
|
2026-03-31 21:12:54 +02:00
|
|
|
"owner": "{{cfg_heimdall_order.user}}"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "file",
|
|
|
|
|
"become": true,
|
|
|
|
|
"ansible.builtin.copy": {
|
2026-03-31 22:00:40 +02:00
|
|
|
"content": "{{cfg_heimdall_order.conf | to_nice_json(sort_keys=False)}}",
|
2026-03-31 21:56:12 +02:00
|
|
|
"dest": "{{cfg_heimdall_order.directory_conf}}/{{cfg_heimdall_order.name}}.hmdl.json"
|
2026-03-31 21:12:54 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"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:56:12 +02:00
|
|
|
"job": "{{cfg_heimdall_order.directory_program}}/heimdall {{cfg_heimdall_order.directory_conf}}/{{cfg_heimdall_order.name}}.hmdl.json --mutex-path=/tmp/heimdall-{{cfg_heimdall_order.name}}.lock"
|
2026-03-31 21:12:54 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|