Skip to content

Commit

Permalink
fix: use this approach to prevent failure
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed May 15, 2024
1 parent 8ec33d5 commit d1cd802
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions ansible-nix/tasks/setup-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,17 @@
# password: ''

- name: create postgres user
shell: useradd -m -r -s /bin/bash -d /home/postgres postgres
shell: useradd -m -r -s /bin/bash -d /home/postgres postgres -g postgres
args:
executable: /bin/bash
become: yes

- name: add postgres user to postgres group
shell: usermod -a -G postgres postgres
shell: usermod -a -g ssl-cert postgres
args:
executable: /bin/bash
become: yes

- name: add postgres user to ssl-cert group
shell: usermod -a -G ssl-cert postgres
args:
executable: /bin/bash
become: yes


- name: Create relevant directories
file:
path: '{{ item }}'
Expand Down
2 changes: 1 addition & 1 deletion common-nix.vars.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
postgres-version = "15.6.1.40-nix-staged"
postgres-version = "15.6.1.41-nix-staged"

0 comments on commit d1cd802

Please sign in to comment.