mirror of
https://github.com/geerlingguy/ansible-role-postgresql.git
synced 2025-03-10 17:26:20 -04:00
More comprehensive database setup, and fix versions for Debian/Ubuntu.
This commit is contained in:
parent
ccbd320aac
commit
1d6f7a9e11
5 changed files with 16 additions and 3 deletions
|
@ -35,6 +35,10 @@ TODO.
|
||||||
lc_collate: 'en_US.UTF-8' # optional
|
lc_collate: 'en_US.UTF-8' # optional
|
||||||
lc_ctype: 'en_US.UTF-8' # optional
|
lc_ctype: 'en_US.UTF-8' # optional
|
||||||
encoding: 'UTF-8' # optional
|
encoding: 'UTF-8' # optional
|
||||||
|
login_host: example.com # optional, defaults to 'localhost'
|
||||||
|
login_password: supersecure # optional
|
||||||
|
login_user: admin # optional, defaults to 'postgres'
|
||||||
|
port: 5432 # optional
|
||||||
|
|
||||||
TODO.
|
TODO.
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,11 @@ postgresql_databases: []
|
||||||
# lc_collate: 'en_US.UTF-8' # optional
|
# lc_collate: 'en_US.UTF-8' # optional
|
||||||
# lc_ctype: 'en_US.UTF-8' # optional
|
# lc_ctype: 'en_US.UTF-8' # optional
|
||||||
# encoding: 'UTF-8' # optional
|
# encoding: 'UTF-8' # optional
|
||||||
|
# login_host: example.com # optional, defaults to 'localhost'
|
||||||
|
# login_password: supersecure # optional
|
||||||
|
# login_user: admin # optional, defaults to 'postgres'
|
||||||
|
# port: 5432 # optional
|
||||||
|
# state: present # optional, defaults to 'present'
|
||||||
|
|
||||||
# Users to ensure exist.
|
# Users to ensure exist.
|
||||||
postgresql_users: []
|
postgresql_users: []
|
||||||
|
|
|
@ -5,5 +5,9 @@
|
||||||
lc_collate: "{{ item.lc_collate | default('en_US.UTF-8') }}"
|
lc_collate: "{{ item.lc_collate | default('en_US.UTF-8') }}"
|
||||||
lc_ctype: "{{ item.lc_ctype | default('en_US.UTF-8') }}"
|
lc_ctype: "{{ item.lc_ctype | default('en_US.UTF-8') }}"
|
||||||
encoding: "{{ item.encoding | default('UTF-8') }}"
|
encoding: "{{ item.encoding | default('UTF-8') }}"
|
||||||
state: present
|
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') }}"
|
||||||
with_items: "{{ postgresql_databases }}"
|
with_items: "{{ postgresql_databases }}"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
__postgresql_version: "9.5"
|
__postgresql_version: "9.4"
|
||||||
__postgresql_bin_path: "/usr/lib/postgresql/{{ __postgresql_version }}/bin"
|
__postgresql_bin_path: "/usr/lib/postgresql/{{ __postgresql_version }}/bin"
|
||||||
__postgresql_daemon: postgresql
|
__postgresql_daemon: postgresql
|
||||||
__postgresql_packages:
|
__postgresql_packages:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
__postgresql_version: "9.5"
|
__postgresql_version: "9.3"
|
||||||
__postgresql_bin_path: "/usr/lib/postgresql/{{ __postgresql_version }}/bin"
|
__postgresql_bin_path: "/usr/lib/postgresql/{{ __postgresql_version }}/bin"
|
||||||
__postgresql_daemon: postgresql
|
__postgresql_daemon: postgresql
|
||||||
__postgresql_packages:
|
__postgresql_packages:
|
||||||
|
|
Loading…
Add table
Reference in a new issue