volume: Support device-based volumes

Also support those options in container and service roles
This commit is contained in:
uumas
2025-07-05 16:14:07 +03:00
parent faa68bfe83
commit a862606df2
9 changed files with 123 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ _container_mounts: >-
{{
container_mounts | selectattr('type', '!=', 'volume') +
container_mounts | selectattr('type', '==', 'volume')
| community.general.remove_keys(['user', 'group'])
| community.general.keep_keys(['type', 'source', 'destination', 'readonly'])
| zip(_container_volume_mount_sources) | map('combine')
}}