Skip to content

Commit 251ec25

Browse files
committed
fix: also need perms on the parent dir for the key file
1 parent 47f2703 commit 251ec25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@
3939

4040
#TODO include ls $(nix profile list | grep glibc-locales | tail -n 1 | cut -d ':' -f 2 | sed 's/^[ \t]*//')/lib/locale-archive
4141

42-
- name: Set permissions to 750 for /etc/ssl/private
42+
- name: Set ownership and permissions for /etc/ssl/private
4343
become: yes
4444
file:
4545
path: /etc/ssl/private
46+
owner: root
47+
group: postgres
4648
mode: '0750'
4749

4850
- name: Set permissions for postgresql.env

common-nix.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.6.1.19-nix-staged"
1+
postgres-version = "15.6.1.20-nix-staged"

0 commit comments

Comments
 (0)