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 4678636 commit d6338b9Copy full SHA for d6338b9
ansible-nix/playbook.yml
@@ -105,6 +105,13 @@
105
106
- name: Clean out build dependencies
107
import_tasks: tasks/clean-build-dependencies.yml
108
- - name: Remove postgres user from users group
+
109
+ - name: Check if postgres user is part of users group
110
+ command: "id -nG postgres | grep -qw users"
111
+ register: check_user_group
112
+ ignore_errors: yes
113
become: yes
- command: gpasswd -d postgres users
114
115
+ - name: Print result to Ansible log output
116
+ debug:
117
+ msg: "The postgres user is {{ 'not ' if check_user_group.rc != 0 else '' }}part of the users group"
common-nix.vars.pkr.hcl
@@ -1 +1 @@
1
-postgres-version = "15.6.1.29-nix-staged"
+postgres-version = "15.6.1.30-nix-staged"
0 commit comments