container: Support referring to container files by network name

This commit is contained in:
uumas
2026-08-02 04:49:27 +03:00
parent 59fa9c0b36
commit ffa970eced
2 changed files with 4 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ _container_networks: >-
{{
container_networks
| map(attribute='name')
| map('regex_replace', '$', '.network')
| map('regex_replace', '^(?!.*\.)(.*)$', '\1.network')
| zip(container_networks | map(attribute='ip', default=''))
| map('reject', 'equalto', '')
| map('join', ':ip=')