PostgreSQL 9.4 on one or two RHEL/Centos boxes.
Internet. RedHat Linux 6 or 7, or Centos 6 or 7.
This role wast tested with molecule:
The first three vars you must set, the others are optional.
base_postgres_mip # This is the ip address of the primary or master database
base_postgres_user # This is your user
base_postgres_pass # This is your password
base_postgres_net # 192.168.20.0/24 This is the subnet granted access
base_postgres_role # If you want 2 hosts then one is master, the other slave
base_postgres_sip # The ip address of the slave when you use 2 databases
Ansible Tower 2.4.5 is compatible with this.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
[dataservers]
data1 role=master
data2 role=slave
- name: 'dbservers.yml'
hosts: dbservers
become: yes
gather_facts: True
vars_files:
- dbservers/secrets.yml
pre_tasks:
- include: dbservers/pre_tasks.yml
roles:
- bbaassssiiee.base_postgres_role
- rsyslog
tasks: []
post_tasks:
- include: dbservers/post_tasks.yml
BSD, MIT
http://twitter.com/bbaassssiiee https://github.com/bbaassssiiee/base_postgres_role.git