We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0464f commit 7744315Copy full SHA for 7744315
ansible-nix/tasks/setup-postgres.yml
@@ -18,10 +18,10 @@
18
# the old method of installing from debian creates this group, but we must create it explicitly
19
# for the nix built version
20
21
-# - name: create postgres group
22
-# group:
23
-# name: postgres
24
-# state: present
+- name: create postgres group
+ group:
+ name: postgres
+ state: present
25
26
# - name: create users
27
# user:
@@ -33,11 +33,11 @@
33
# password: ''
34
35
- name: create postgres user
36
- shell: useradd -m -r -s /bin/bash postgres
+ shell: useradd -m -r -s /bin/bash -d /home/postgres postgres -G postgres,ssl-cert
37
args:
38
executable: /bin/bash
39
become: yes
40
-
+
41
- name: Create relevant directories
42
file:
43
path: '{{ item }}'
0 commit comments