https://github.com/runtimellc/ansible_postgresql
https://github.com/runtimellc/ansible_postgresql
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/runtimellc/ansible_postgresql
- Owner: RuntimeLLC
- Created: 2016-06-10T14:49:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T11:24:50.000Z (about 9 years ago)
- Last Synced: 2026-01-01T14:36:54.252Z (5 months ago)
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/RuntimeLLC/ansible_postgresql)
#PostgreSQL Server
Example of the role of inclusion:
```
- hosts: database
become: yes
become_method: sudo
roles:
- role: postgresql
pg_users:
- name: 'test1'
- name: 'test2'
pass: 'test2_password'
- name: 'test3'
pass: 'test3_password'
role_attr_flags: 'LOGIN'
pg_databases:
- name: 'test1'
- name: 'test2'
owner: 'test2'
- name: 'test3'
encoding: 'UTF-8'
lc_collate: 'en_US.UTF-8'
lc_ctype: 'en_US.UTF-8'
owner: 'test3'
extensions:
- "pg_buffercache"
- "pg_stat_statements"
pg_hba_settings:
- { value: 'host test1 postgres 127.0.0.1/32 md5'}
- { value: 'host test2 postgres 127.0.0.1/32 md5', state: 'present' }
- { value: 'host test2 test2 192.168.122.0/24 md5' }
- { value: 'host test3 test2 192.168.100.0/24 md5', state: 'absent'}
pg_settings:
- { name: 'listen_addresses', value: '*' }
- { name: 'lc_messages', value: 'en_US.UTF-8' }
- { name: 'log_line_prefix', value: '%t [%p]: [%l-1] ' }
- { name: 'log_temp_files', value: '0', state: 'absent' }
```