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 a22335b commit 2cfe394Copy full SHA for 2cfe394
ansible-nix/tasks/stage2/playbook.yml
@@ -50,3 +50,15 @@
50
import_tasks: test-image.yml
51
tags:
52
- unit-tests
53
+
54
+ - name: Check if postgres user is part of users group
55
+ shell: "id -nG postgres | grep -qw users"
56
+ register: check_user_group
57
+ ignore_errors: yes
58
+ become: yes
59
+ args:
60
+ executable: /bin/bash
61
62
+ - name: Print result to Ansible log output
63
+ debug:
64
+ 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.33-nix-staged"
+postgres-version = "15.6.1.34-nix-staged"
0 commit comments