Skip to content

Commit d1cd802

Browse files
committed
fix: use this approach to prevent failure
1 parent 8ec33d5 commit d1cd802

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

ansible-nix/tasks/setup-postgres.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,17 @@
3333
# password: ''
3434

3535
- name: create postgres user
36-
shell: useradd -m -r -s /bin/bash -d /home/postgres postgres
36+
shell: useradd -m -r -s /bin/bash -d /home/postgres postgres -g postgres
3737
args:
3838
executable: /bin/bash
3939
become: yes
4040

4141
- name: add postgres user to postgres group
42-
shell: usermod -a -G postgres postgres
42+
shell: usermod -a -g ssl-cert postgres
4343
args:
4444
executable: /bin/bash
4545
become: yes
4646

47-
- name: add postgres user to ssl-cert group
48-
shell: usermod -a -G ssl-cert postgres
49-
args:
50-
executable: /bin/bash
51-
become: yes
52-
53-
5447
- name: Create relevant directories
5548
file:
5649
path: '{{ item }}'

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.40-nix-staged"
1+
postgres-version = "15.6.1.41-nix-staged"

0 commit comments

Comments
 (0)