[tutorial Rougail 2.2] calculed variable

Apero configuration
===================

Get password from an user
This commit is contained in:
egarette@silique.fr 2023-12-18 11:34:33 +01:00
parent e87d2d69b7
commit 0adf7aea25

View file

@ -30,3 +30,14 @@ env_srep:
variable: socle.env_apero.access.login
test:
- srep
apero_password:
type: secret
hidden: true
default:
type: jinja
jinja: |
{% for value in socle.env_apero.access.login %}
{% if value == socle.env_srep.apero_user %}
{{ socle.env_apero.access.password[loop.index0] }}
{% endif %}
{% endfor %}