ElaoInfra.postgresql
Ansible Role: postgresql
This role will assume the setup of PostgreSQL
It's part of the ELAO Ansible stack but can be used as a stand alone component.
Requirements
- Ansible 1.7.2+
Dependencies
None
Installation
Using ansible galaxy:
ansible-galaxy install elao.postgresql
You can add this role as a dependency for other roles by adding the role to the meta/main.yml file of your own role:
dependencies:
- { role: elao.postgresql }
Role Handlers
postgresql restart # Restart PostgreSQL server
Role Variables
Definition
| Name | Default | Type | Description |
|---|---|---|---|
elao_postgresql_version |
None | String (version) | REQUIRED - PostgreSQL version |
elao_postgresql_config_hba_template |
None | String (path) | Path to a custom hba config template |
Configuration example
elao_postgresql_version: 9.4
PostgreSQL with custom configuration files:
elao_postgresql_config_hba_template: "{{ playbook_dir ~ '/templates/pg_hba.conf.j2' }}"
Example playbook
- hosts: servers
roles:
- { role: elao.postgresql }
Licence
MIT
Author information
Install
ansible-galaxy install ElaoInfra.postgresqlLicense
Unknown
Downloads
345
Owner
All of those roles aren't maintained anymore and we strongly encourage you to switch to our new (maintained and tested) Ansible stack: https://github.com/manala
