/
/
/
Ansible role that deployes services on my runner machine
1# {{ ansible_managed }}
2TZ={{ runner_timezone }}
3MACROS_TIMEZONE={{ runner_timezone }}
4MACROS_DATABASE_URL=postgresql+psycopg://macros:{{ macros_postgres_password }}@macros-db:5432/macros
5
6# Single-user login.
7MACROS_PASSWORD={{ macros_password }}
8MACROS_SECRET_KEY={{ macros_secret_key }}
9MACROS_SECURE_COOKIE={{ macros_secure_cookie | lower }}
10
11# LiteLLM by host address; see macros_llm_base_url in defaults.
12MACROS_LLM_BASE_URL={{ macros_llm_base_url }}
13MACROS_LLM_API_KEY={{ macros_llm_api_key }}
14MACROS_LLM_MODEL={{ macros_llm_model }}
15
16MACROS_NEVO_CSV=/data/nevo/{{ macros_nevo_file }}
17MACROS_ENABLE_AH={{ macros_enable_ah | lower }}
18MACROS_ENABLE_OFF={{ macros_enable_off | lower }}
19MACROS_ENABLE_WEB_SEARCH={{ macros_enable_web_search | lower }}
20MACROS_SEARXNG_URL=http://macros-searxng:8080
21
22{% if macros_openscale_token | length > 0 %}
23# openScale sync webhook (smart-scale readings from the phone).
24MACROS_OPENSCALE_TOKEN={{ macros_openscale_token }}
25{% endif %}
26
27{% if macros_zepp_email | length > 0 and macros_zepp_password | length > 0 %}
28# Zepp account: the Helio Strap's days, heart rate and workouts are polled
29# from Zepp's cloud. Single quotes keep '#' and '!' in the password literal.
30MACROS_ZEPP_EMAIL={{ macros_zepp_email }}
31MACROS_ZEPP_PASSWORD='{{ macros_zepp_password }}'
32{% endif %}
33
34{% if macros_mealie_enabled | bool and macros_mealie_api_token | length > 0 %}
35# Mealie: recipe import and nutrition write-back.
36MACROS_MEALIE_URL={{ macros_mealie_url }}
37MACROS_MEALIE_PUBLIC_URL={{ macros_mealie_public_url }}
38MACROS_MEALIE_API_TOKEN={{ macros_mealie_api_token }}
39{% endif %}
40