Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angristan/ansible-postgresql
Ansible role for PostgreSQL
https://github.com/angristan/ansible-postgresql
ansible debian postgres postgresql ubuntu
Last synced: 23 days ago
JSON representation
Ansible role for PostgreSQL
- Host: GitHub
- URL: https://github.com/angristan/ansible-postgresql
- Owner: angristan
- License: mit
- Created: 2019-02-16T15:11:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T18:24:32.000Z (almost 5 years ago)
- Last Synced: 2025-01-19T22:16:16.714Z (26 days ago)
- Topics: ansible, debian, postgres, postgresql, ubuntu
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role for PostgreSQL
This is a simple role that will install PostgreSQL and handle users, databases and configuration.
The role should work on all Debian-based distributions.
By default, the role will install PostgreSQL 11 from the [PGDG APT repository](https://wiki.postgresql.org/wiki/Apt). You can set a version with `postgresql_version`.
## Sample playbook
```yaml
---- hosts: myhost
roles:
- name: postgresql
tags: postgresql
vars:
postgresql_version: 11
postgresql_install_from_pgdg: true
postgresql_options:
- {key: listen_addresses, value: "'*'"}
- {key: max_connections, value: 200}
- {key: shared_buffers, value: 1GB}
postgresql_databases:
- name: blog
postgresql_users:
- name: blog
password: "{{ vault_postgresql_password_blog }}"
db: blog
```