Skip to content

awesto/ansible-role-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 rene@fleschenberg.net

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published