Skip to content

Commit 808110f

Browse files
committed
refactor: Simplify PostgreSQL conf template sourcing
The source path for PostgreSQL configuration templates has been simplified. Previously, underscores in `ext_item` were removed when constructing the template filename. This change removes that transformation, directly using `{{ ext_item }}.conf`. This implies that template files in `files/postgresql_config/conf.d/` now match the `ext_item` loop variables directly (e.g., `auto_explain.conf`).
1 parent b4f37a0 commit 808110f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/tasks/finalize-ami.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
ansible.builtin.template:
99
dest: "/etc/postgresql-custom/conf.d/{{ ext_item }}.conf"
1010
group: 'postgres'
11-
src: "files/postgresql_config/conf.d/{{ ext_item | split('_') | join('') }}.conf"
11+
src: "files/postgresql_config/conf.d/{{ ext_item }}.conf"
1212
loop:
1313
- auto_explain
1414
# - pg_cron

0 commit comments

Comments
 (0)