Skip to content

Commit

Permalink
Merge conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
pjan committed Jan 28, 2015
2 parents 92dd45a + 9d9c328 commit 56f57bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tasks/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
lc_ctype: "{{postgresql_locale}}"
template: "template0"
state: present
login_user: "{{postgresql_admin_user}}"
sudo: yes
sudo_user: "{{postgresql_admin_user}}"
with_items: postgresql_databases
when: postgresql_databases|length > 0

Expand Down
17 changes: 16 additions & 1 deletion tasks/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
name: "{{item.name}}"
password: "{{item.pass | default('pass')}}"
state: present
login_host: "{{item.host | default('localhost')}}"
login_user: "{{postgresql_admin_user}}"
sudo: yes
sudo_user: "{{postgresql_admin_user}}"
with_items: postgresql_users
when: postgresql_users|length > 0

- name: PostgreSQL | Update the user privileges
postgresql_user:
name: "{{item.name}}"
db: "{{item.db}}"
priv: "{{item.priv | default('ALL')}}"
state: present
login_user: "{{postgresql_admin_user}}"
sudo: yes
sudo_user: "{{postgresql_admin_user}}"
with_items: postgresql_user_privileges
when: postgresql_users|length > 0

0 comments on commit 56f57bc

Please sign in to comment.