diff --git a/ansible-nix/playbook.yml b/ansible-nix/playbook.yml index 51a20cb0d..059c3cdc6 100644 --- a/ansible-nix/playbook.yml +++ b/ansible-nix/playbook.yml @@ -105,6 +105,13 @@ - name: Clean out build dependencies import_tasks: tasks/clean-build-dependencies.yml - - name: Remove postgres user from users group + + - name: Check if postgres user is part of users group + command: "id -nG postgres | grep -qw users" + register: check_user_group + ignore_errors: yes become: yes - command: gpasswd -d postgres users + + - name: Print result to Ansible log output + debug: + msg: "The postgres user is {{ 'not ' if check_user_group.rc != 0 else '' }}part of the users group" diff --git a/common-nix.vars.pkr.hcl b/common-nix.vars.pkr.hcl index 9973b987d..87527df72 100644 --- a/common-nix.vars.pkr.hcl +++ b/common-nix.vars.pkr.hcl @@ -1 +1 @@ -postgres-version = "15.6.1.29-nix-staged" +postgres-version = "15.6.1.30-nix-staged"