ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | README | LICENSE

commit 51297088b6a06e47ecfc5a1f0d4624d6178f01ec
parent da46f96aa01999428640606f29c6a5db184824b3
Author: Florian Dold <florian@dold.me>
Date:   Sun,  2 Aug 2026 14:11:55 +0200

fix bad copy+paste / escaping

Diffstat:
Mroles/challenger/templates/etc/challenger/sms-challenger.env.j2 | 23+++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/roles/challenger/templates/etc/challenger/sms-challenger.env.j2 b/roles/challenger/templates/etc/challenger/sms-challenger.env.j2 @@ -1,12 +1,23 @@ # systemd environment file for challenger-httpd # Provides secrets needed. + + # Legacy style + AUTH_TOKEN={{ sms_challenger_telesign_auth_token }} + # Modern style + +{% if sms_challenger_telesign_auth_token is defined %} TELESIGN_AUTH_TOKEN={{ sms_challenger_telesign_auth_token }} -# Uncomment to use clicksend: -CLICKSEND_API_KEY={{ '{{' }} sms_challenger_clicksend_api_key {{ '}}' }} -CLICKSEND_USERNAME={{ '{{' }} sms_challenger_clicksend_username {{ '}}' }} -# Uncomment to use aspsms: -ASPSMS_APIKEY={{ '{{' }} sms_challenger_aspsms_apikey {{ '}}' }} -ASPSMS_PASSWORD={{ '{{' }} sms_challenger_aspsms_password {{ '}}' }} +{% endif %} + +{% if sms_challenger_clicksend_api_key is defined and sms_challenger_clicksend_username is defined %} +CLICKSEND_API_KEY={{ sms_challenger_clicksend_api_key }} +CLICKSEND_USERNAME={{ sms_challenger_clicksend_username }} +{% endif %} + +{% if sms_challenger_aspsms_apikey is defined and sms_challenger_aspsms_password is defined %} +ASPSMS_APIKEY={{ sms_challenger_aspsms_apikey }} +ASPSMS_PASSWORD={{ sms_challenger_aspsms_password }} +{% endif %}