Skip to content

Commit 4393ff0

Browse files
author
Robert Sokol
committed
[automation] add automatic action indexing
1 parent 871ca21 commit 4393ff0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

group_vars/all.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ olivetin_actions:
5353
timeout: 10
5454
"Restore Creative":
5555
cmd: "/home/automation/scripts/restore-creative"
56-
timeout: 300
56+
timeout: 600
5757
popupOnStart: "execution-dialog"
58-
limit: "5m"
58+
limit: "10m"
5959
"Sync whitelists":
6060
cmd: "/home/automation/scripts/sync-whitelist"
6161
timeout: 10

roles/automation/templates/olivetin.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ authLocalUsers:
2424
actions:
2525
{% for name, action in olivetin_actions.items() %}
2626
- title: {{ name }}
27+
id: {{ loop.index }}
2728
shell: {{ action.cmd }}
2829
timeout: {{ action.timeout | default(3) }}
2930
maxConcurrent: 1

0 commit comments

Comments
 (0)