https://github.com/gmauro/ansible-postgresql
An Ansible role to install a PostgreSQL server on Ubuntu or Debian systems.
https://github.com/gmauro/ansible-postgresql
ansible-role debian-systems postgresql ubuntu
Last synced: 2 months ago
JSON representation
An Ansible role to install a PostgreSQL server on Ubuntu or Debian systems.
- Host: GitHub
- URL: https://github.com/gmauro/ansible-postgresql
- Owner: gmauro
- License: mit
- Created: 2016-09-27T10:38:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-01T21:02:33.000Z (over 6 years ago)
- Last Synced: 2025-02-03T11:14:30.321Z (4 months ago)
- Topics: ansible-role, debian-systems, postgresql, ubuntu
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible PostgreSQL
An [Ansible](http://www.ansible.com/) role to install a PostgreSQL server on Ubuntu or Debian systems
[](https://travis-ci.org/gmauro/ansible-postgresql)## Requirements
This role requires Ansible **2.4+**.
See [Ansible installation](http://docs.ansible.com/ansible/intro_installation.html)## Variables
* _**pg_version**_: Version of postgres to install. The default is **9.5**
* _**pg_install_packages**_: Flag to decide if the role has to install the packages or not. The default is **yes**
* _**pg_packages_state**_: State of the packages. The default is **present**
* _**pg_setup**_: Ensure database is created, user can access the database and does not have unnecessary privileges. The default is **yes**
* _**pg_drop_db**_: Drop existing db cluster. The default is **no**
* _**pg_extend**_: Modify postgresql configuration. The default is **no**
* _**pg_initialize**_: Initialize the db. The default is **no**
* _**pg_locale**_: Locale value. The default is **en_US**
* _**pg_encoding**_: Character encoding. The default is **UTF-8**
* _**pg_db_name**_: db name
* _**pg_user**_: username
* _**pg_password**_: password
* _**sql_file_src_path**_: Local path to the sql file to use to initialize the db