roles: Add grocy stack

This commit is contained in:
Marty Oehme 2025-07-17 18:07:53 +02:00
parent 6a1e01575c
commit 90f004fbdb
Signed by: Marty
GPG key ID: 4E535BC19C61886E
8 changed files with 132 additions and 0 deletions

View file

@ -0,0 +1,16 @@
---
- name: Create grocy stack environment directory
ansible.builtin.file:
state: directory
path: "{{ stack_grocy_env_dir }}"
owner: root
group: root
mode: 0700
- name: Start the compose stack
community.docker.docker_compose_v2:
project_name: stack_grocy
definition: "{{ lookup('template', 'docker-compose.yaml.j2') | from_yaml }}"
remove_orphans: true
wait: true
wait_timeout: 60