Skip to content

Commit dd20452

Browse files
committed
Set default role flags for PostgreSQL users
Adds a default value of 'LOGIN' for the role_attr_flags when not specified in the user item, ensuring users have login privileges by default.
1 parent d155028 commit dd20452

File tree

1 file changed

+1
-1
lines changed
  • automation/roles/postgresql_users/tasks

1 file changed

+1
-1
lines changed

automation/roles/postgresql_users/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name: "{{ item.name }}"
77
password: "{{ item.password | default(omit) }}"
88
encrypted: true
9-
role_attr_flags: "{{ item.flags }}"
9+
role_attr_flags: "{{ item.flags | default('LOGIN') }}"
1010
login_host: "127.0.0.1"
1111
login_port: "{{ postgresql_port }}"
1212
login_user: "{{ patroni_superuser_username }}"

0 commit comments

Comments
 (0)