Sam Doran contributed this Ansible role for PostgreSQL Repliction, especially for Database Streaming Replication for Ansible Tower Cluster.
Some of the issues are already fixed and good to go.
Note: I have moved this note to samdoran-pgsql-replication-role-notes