Add missing files & finish TODO's
This commit is contained in:
parent
27a88a719f
commit
3918c63751
6 changed files with 58 additions and 6 deletions
3
roles/transip_client/templates/env.j2
Normal file
3
roles/transip_client/templates/env.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
DOMAINS="{{ app_domains | join(':') }}"
|
||||
TOKEN="{{ app_token }}"
|
||||
SENTRY_DSN="{{ sentry_dsn }}"
|
||||
14
roles/transip_client/templates/service.j2
Normal file
14
roles/transip_client/templates/service.j2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Transip-client service
|
||||
|
||||
[Service]
|
||||
EnvironmentFile={{ app_dir }}/.env
|
||||
WorkingDirectory={{ app_dir }}
|
||||
ExecStart=poetry run listen
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
13
roles/transip_client/templates/timer.j2
Normal file
13
roles/transip_client/templates/timer.j2
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
#
|
||||
|
||||
[Unit]
|
||||
Description=Trans IP client timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=+5min
|
||||
Unit=transip-client.service
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in a new issue