Add support for container devices
This commit is contained in:
@@ -49,6 +49,25 @@ _container_mounts: >-
|
||||
| zip(_container_volume_mount_sources) | map('combine')
|
||||
}}
|
||||
|
||||
_container_devices_withdefaults: >-
|
||||
{{
|
||||
container_devices
|
||||
| map(attribute='source')
|
||||
| map('community.general.dict_kv', 'destination')
|
||||
| zip(container_devices)
|
||||
| map('combine')
|
||||
}}
|
||||
_container_devices: >-
|
||||
{{
|
||||
_container_devices_withdefaults
|
||||
| map(attribute='source')
|
||||
| zip(
|
||||
_container_devices_withdefaults
|
||||
| map(attribute='destination')
|
||||
)
|
||||
| map('join', ':')
|
||||
}}
|
||||
|
||||
_container_secrets: >-
|
||||
{{
|
||||
container_secrets
|
||||
|
||||
Reference in New Issue
Block a user