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 5df9ec8 commit 80af04eCopy full SHA for 80af04e
ansible-nix/tasks/setup-postgres.yml
@@ -33,11 +33,24 @@
33
# password: ''
34
35
- name: create postgres user
36
- shell: useradd -m -r -s /bin/bash -d /home/postgres postgres -g postgres -g ssl-cert
+ shell: useradd -m -r -s /bin/bash -d /home/postgres postgres
37
args:
38
executable: /bin/bash
39
become: yes
40
41
+- name: add postgres user to postgres group
42
+ shell: usermod -aG postgres postgres
43
+ args:
44
+ executable: /bin/bash
45
+ become: yes
46
+
47
+- name: add postgres user to ssl-cert group
48
+ shell: usermod -aG ssl-cert postgres
49
50
51
52
53
54
- name: Create relevant directories
55
file:
56
path: '{{ item }}'
0 commit comments