roles: Inherit from global vars with defaults

Global options such as 'timezone' or 'puid' can be set on a host and all
(relevant) roles will inherit them. Will be used for more variables in
the future.
This commit is contained in:
Marty Oehme 2025-07-17 09:20:32 +02:00
parent 770da26b03
commit 812deeb12d
Signed by: Marty
GPG key ID: 4E535BC19C61886E
4 changed files with 21 additions and 16 deletions

View file

@ -1,8 +1,9 @@
---
# inherited from global
stack_grocy_tz: "{{ timezone | default('America/Chicago') }}"
stack_grocy_puid: "{{ puid | default(1000) }}"
stack_grocy_pgid: "{{ pgid | default(100) }}"
stack_grocy_umask_set: "{{ umask_set | default(022) }}"
stack_grocy_env_dir: /opt/stack_grocy
stack_grocy_puid: 1000
stack_grocy_pgid: 100
stack_grocy_tz: America/Chicago
stack_grocy_umask_set: 022