vendor/ANXS.postgresql/tasks/users_privileges.yml in taperole-1.2.8 vs vendor/ANXS.postgresql/tasks/users_privileges.yml in taperole-1.3.0
- old
+ new
@@ -1,16 +1,16 @@
# file: postgresql/tasks/users_privileges.yml
- name: PostgreSQL | Update the user privileges
postgresql_user:
name: "{{item.name}}"
- db: "{{item.db}}"
+ db: "{{item.db | default(omit)}}"
port: "{{postgresql_port}}"
- priv: "{{item.priv | default('ALL')}}"
+ priv: "{{item.priv | default(omit)}}"
state: present
- login_host: "{{item.host | default('localhost')}}"
+ login_host: "{{item.host | default(omit)}}"
login_user: "{{postgresql_admin_user}}"
- role_attr_flags: "{{item.role_attr_flags | default('')}}"
+ role_attr_flags: "{{item.role_attr_flags | default(omit)}}"
sudo: yes
sudo_user: "{{postgresql_admin_user}}"
with_items: postgresql_user_privileges
when: postgresql_users|length > 0