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

https://github.com/duologic/ansible-role-postgresql_repository

Ansible role to install the official Postgresql repositories
https://github.com/duologic/ansible-role-postgresql_repository

Last synced: 24 days ago
JSON representation

Ansible role to install the official Postgresql repositories

Awesome Lists containing this project

README

          

Duologic.postgresql_repository
==============================

[![Build Status](https://travis-ci.org/Duologic/ansible-role-postgresql_repository.svg?branch=master)](https://travis-ci.org/Duologic/ansible-role-postgresql_repository)

This role install the official Postgresql repositories. Tested on CentOS 7 and Ubuntu 18.04/Bionic. This role sets facts for use in [geerlingguy.postgresql](https://github.com/geerlingguy/ansible-role-postgresql).

Role Variables
--------------

postgres_repo_version: '11'

The [defaults](defaults/main.yml) use the `ansible_*` variables to find the platform and architecture.

The YUM repository matrix in [vars/yum.yml](vars/yum.yml) is scraped from the Postgresql website and transformed into a YAML file with PyYaml and `generate_yum_yaml.py`.

Example Playbook
----------------

```
- hosts: servers
become: yes
roles:
- { role: Duologic.postgresql_repository, postgres_repo_version: '11' }
```

License
-------

MIT

Author Information
------------------

Jeroen Op 't Eynde, jeroen@simplistic.be