Skip to content

Commit 7f0a2d9

Browse files
committed
refactor(setup-postgres): call ln directly to avoid errors on missing dirs
1 parent 7115025 commit 7f0a2d9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,13 @@
185185
- (debpkg_mode or nixpkg_mode)
186186
block:
187187
- name: Create symlink to /usr/lib/postgresql/bin
188-
ansible.builtin.file:
189-
force: true
190-
path: '/usr/lib/postgresql/bin'
191-
src: "/usr/lib/postgresql/{{ postgresql_major }}/bin"
192-
state: 'link'
188+
ansible.builtin.command:
189+
cmd: ln -sf /usr/lib/postgresql/{{ postgresql_major }}/bin /usr/lib/postgresql/bin
190+
# ansible.builtin.file:
191+
# force: true
192+
# path: '/usr/lib/postgresql/bin'
193+
# src: "/usr/lib/postgresql/{{ postgresql_major }}/bin"
194+
# state: 'link'
193195

194196
- name: Create directory on data volume
195197
ansible.builtin.file:

0 commit comments

Comments
 (0)