feat: Create role
This commit is contained in:
12
templates/timer.j2
Normal file
12
templates/timer.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[Unit]
|
||||
Description={{ item.name }}
|
||||
|
||||
[Timer]
|
||||
OnBootSec={{ (item.timeout | int) - 10 }}second
|
||||
OnUnitActiveSec={{ (item.timeout | int) - 10 }}second
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user