commit 35e17292f50732786561dc870075c81cfc9707c0 parent ff04e066f6ac8a802a6b39a017d20fc10b7bf5c4 Author: Florian Dold <dold@taler.net> Date: Mon, 7 Sep 2026 19:16:19 +0200 start_services: name the unit restoration conditions Diffstat:
| M | roles/start_services/tasks/main.yml | | | 16 | +++++++++++----- |
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/roles/start_services/tasks/main.yml b/roles/start_services/tasks/main.yml @@ -32,8 +32,14 @@ name: "{{ item }}" state: started loop: "{{ deployment_previously_active_units | default([]) }}" - when: >- - (not (deploy_auditor | bool) and item is match('^(taler-auditor|taler-helper-auditor)')) - or (not (deploy_challenger | bool) and item is match('^(challenger-httpd|sms-challenger-httpd|email-challenger-httpd|postal-challenger-httpd)')) - or (item is search('[.](timer|socket)$') - and not (item is match('^libeufin-nexus') and not (use_ebics | bool))) + vars: + restore_auditor_unit: >- + {{ not (deploy_auditor | bool) + and item is match('^taler-(helper-)?auditor') }} + restore_challenger_unit: >- + {{ not (deploy_challenger | bool) + and item is match('^((sms|email|postal)-)?challenger-httpd') }} + restore_activation_source: >- + {{ item is search('[.](timer|socket)$') + and ((use_ebics | bool) or item is not match('^libeufin-nexus')) }} + when: restore_auditor_unit or restore_challenger_unit or restore_activation_source