An open API service indexing awesome lists of open source software.

https://github.com/awesto/ansible-role-postgres


https://github.com/awesto/ansible-role-postgres

Last synced: 8 months ago
JSON representation

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