Add variable to create required directories per stack #2

Open
opened 2026-10-01 20:17:02 +00:00 by jsanchezd · 0 comments
Owner

On a dockge_stacks item:

  - name: some_stack
    source: local
    local_path: /path/to/stack/docker-compose
    directories_list:
        - path: /path/to/dir1
          owner: someowner_or_id
          group: somegroup_or_id
        - path: /path/to/dir2
          owner: someowner_or_id 
          group: somegroup_or_id

The directories_list variables is processed by creating all required directories on the host with the right ownership so that the stacks can access them.

On a dockge_stacks item: ``` - name: some_stack source: local local_path: /path/to/stack/docker-compose directories_list: - path: /path/to/dir1 owner: someowner_or_id group: somegroup_or_id - path: /path/to/dir2 owner: someowner_or_id group: somegroup_or_id ``` The `directories_list` variables is processed by creating all required directories on the host with the right ownership so that the stacks can access them.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ansible-collections/silvarion.containers#2
No description provided.