Skip to content

Commit 258136b

Browse files
committed
feat: use jinja2 files in 2nd stage
1 parent 25e46d6 commit 258136b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ansible/tasks/stage2/stage2-setup-postgres.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@
138138

139139
- name: copy PG systemd unit
140140
template:
141-
src: files/postgresql_config/postgresql.service.j2
141+
src: /tmp/ansible-playbook/files/postgresql_config/postgresql.service.j2
142142
dest: /etc/systemd/system/postgresql.service
143143

144144
- name: copy optimizations systemd unit
145145
template:
146-
src: files/database-optimizations.service.j2
146+
src: /tmp/ansible-playbook/files/database-optimizations.service.j2
147147
dest: /etc/systemd/system/database-optimizations.service
148148

149149
# # # Reload

stage2-nix-psql.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ build {
6363

6464
provisioner "file" {
6565
source = "ansible/files"
66-
destination = "/tmp/ansible-playbook"
66+
destination = "/tmp/ansible-playbook/files"
6767
}
6868

6969

0 commit comments

Comments
 (0)