Skip to content

kevincoakley/ansible-role-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-postgres

Install Postgres 10, 11, 12, 13, 14, & 15. Tested with Postgres 10, 11, 12, 13, 14, & 15 and CentOS 8, Ubuntu 20.04 & Ubuntu 22.04.

Requirements

None

Role Variables

See defaults/main.yml and the example inventory below

Dependencies

None

Example Playbook

- name: Postgres role 
  hosts: postgres
  become: yes
  become_method: sudo

  vars:
    - postgres_listen_addresses: "*"
    - postgres_client_auth:
      - type: host
        database: all
        user: all
        address: 0.0.0.0/0
        method: md5
      - type: local
        database: all
        user: all
        method: md5

  roles:
    - ansible-role-postgres

  tags:
    - postgres

License

BSD

Author Information

Kevin Coakley (https://github.com/kevincoakley)