Files
ansible-podman/roles/volume/vars/main.yaml
uumas 61a8e67205 Add volume role and support setting volume owner
Add volume role
container: Use volume role, including support for user and group
2024-11-19 19:50:43 +02:00

7 lines
370 B
YAML

---
volume_mount_options_incl_empty:
- "{{ 'uid=' ~ volume_uid if volume_uid | length > 0 else '' }}"
- "{{ 'gid=' ~ volume_gid if volume_gid | length > 0 else '' }}"
volume_mount_options: "{{ volume_mount_options_incl_empty | select('!=', '') | list }}"
volume_options: "{{ ['o=' ~ volume_mount_options | join(',')] if volume_mount_options | length > 0 else [] }}"