2016-09-29 12:03:13 -04:00
|
|
|
---
|
|
|
|
- name: Ensure PostgreSQL databases are present.
|
|
|
|
postgresql_db:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
lc_collate: "{{ item.lc_collate | default('en_US.UTF-8') }}"
|
|
|
|
lc_ctype: "{{ item.lc_ctype | default('en_US.UTF-8') }}"
|
|
|
|
encoding: "{{ item.encoding | default('UTF-8') }}"
|
2016-09-29 16:06:34 -04:00
|
|
|
login_host: "{{ item.login_host | default('localhost') }}"
|
|
|
|
login_password: "{{ item.login_password | default(omit) }}"
|
|
|
|
login_user: "{{ item.login_user | default('postgres') }}"
|
|
|
|
port: "{{ item.port | default('5432') }}"
|
|
|
|
state: "{{ item.state | default('present') }}"
|
2016-09-29 12:03:13 -04:00
|
|
|
with_items: "{{ postgresql_databases }}"
|