https://github.com/awesto/ansible-role-postgres
https://github.com/awesto/ansible-role-postgres
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/awesto/ansible-role-postgres
- Owner: awesto
- Created: 2016-04-10T11:41:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T17:28:55.000Z (over 5 years ago)
- Last Synced: 2024-12-29T15:45:21.994Z (9 months ago)
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Postgres
========This role is written for internal use by Awesto and not designed to cover
more general use-cases. You probably do not want to use it.Requirements
------------None.
Role Variables
--------------`postgres_version`: the version of PostgreSQL to use.
`postgres_backup_retention_time`: how long to keep backups in
`/var/local/backups`. Specify the value in tmpreaper syntax. Defaults to `'30d'`.`postgres_databases`: a list of mappings such as this:
```
- postgres_databases:
- database: mydb
username: myuser
password: secret
```Dependencies
------------None.
Example Playbook
----------------```
- hosts: dbservers
roles:
- postgres
vars:
- postgres_version: 9.6
- postgres_databases:
- database: mydb
username: myuser
password: secret
- postgres_backup_retention_time: 60d
```License
-------BSD
Author Information
------------------René Fleschenberg