Skip to content

Commit ecaabda

Browse files
committed
fix(stage2-setup-postgres): nuke the dir so we can recreate it as a symlink
1 parent 8caec8b commit ecaabda

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ansible/tasks/stage2-setup-postgres.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,13 @@
167167
src: '/var/lib/postgresql/.nix-profile/bin/pg_config'
168168
state: 'link'
169169

170+
- name: Nuke /usr/lib/postgresql/share so we can recreate it as a symlink
171+
ansible.builtin.file:
172+
path: '/usr/lib/postgresql/share'
173+
state: 'absent'
174+
170175
- name: Create symlinks for PG share links into /usr/lib/postgresql/share
171176
ansible.builtin.file:
172-
force: true
173177
group: 'postgres'
174178
owner: 'postgres'
175179
path: '/usr/lib/postgresql/share'

0 commit comments

Comments
 (0)