container: Allow setting secret target

This commit is contained in:
uumas
2025-06-23 11:58:37 +03:00
parent 60529c18cd
commit 8f29c2815e
3 changed files with 35 additions and 7 deletions

View File

@@ -29,7 +29,14 @@ _container_secrets: >-
| zip(
container_secrets
| map(attribute='type', default='mount')
| map('regex_replace', '^', 'type=')
| map('regex_replace', '^', 'type='),
container_secrets
| map(attribute='name')
| map('community.general.dict_kv', 'target')
| zip(container_secrets)
| map('combine')
| map(attribute='target')
| map('regex_replace', '^', 'target=')
)
| map('join', ',')
}}