container: Support referring to container files by network name
This commit is contained in:
@@ -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=')
|
||||
|
||||
Reference in New Issue
Block a user