Skip to content

Commit 7744315

Browse files
committed
fix: user add command route
1 parent ed0464f commit 7744315

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ansible-nix/tasks/setup-postgres.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# the old method of installing from debian creates this group, but we must create it explicitly
1919
# for the nix built version
2020

21-
# - name: create postgres group
22-
# group:
23-
# name: postgres
24-
# state: present
21+
- name: create postgres group
22+
group:
23+
name: postgres
24+
state: present
2525

2626
# - name: create users
2727
# user:
@@ -33,11 +33,11 @@
3333
# password: ''
3434

3535
- name: create postgres user
36-
shell: useradd -m -r -s /bin/bash postgres
36+
shell: useradd -m -r -s /bin/bash -d /home/postgres postgres -G postgres,ssl-cert
3737
args:
3838
executable: /bin/bash
3939
become: yes
40-
40+
4141
- name: Create relevant directories
4242
file:
4343
path: '{{ item }}'

0 commit comments

Comments
 (0)