Add optional mount of template overrides and use chill in env templates
- add `load_template_override` (default false) to `default_chill`: controls the creation and the mount of the `templates` directory - use `chill.chill_config` instead of `item.chill_config` in env_file.env, rabbitmq.env and postgres.env Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VnXP3D1srf5k8MrtPFUz93
This commit is contained in:
1 parent
7e0847d1c5
commit
c699983b80
6 files changed
+21
-9
No files matched your search
@@ -45,6 +45,14 @@
|
||||
owner: "82"
|
||||
mode: '0500'
|
||||
|
||||
- name: Create directory for template overrides (mounted in the app container)
|
||||
ansible.builtin.file:
|
||||
path: "{{ install_dir }}/{{ chill['chill_environment'] }}/templates"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
owner: "{{ as_user }}"
|
||||
when: chill.load_template_override
|
||||
|
||||
- name: Copy configuration files
|
||||
ansible.builtin.template:
|
||||
src: "config/prod/{{ file }}"
|
||||
|
||||
Reference in new issue
Block a user