{"id":19569482,"url":"https://github.com/buluma/ansible-role-postgresql_replication","last_synced_at":"2026-05-06T01:35:03.720Z","repository":{"id":40355752,"uuid":"484051697","full_name":"buluma/ansible-role-postgresql_replication","owner":"buluma","description":"Ansible role to deploy PostgreSQL replication.","archived":false,"fork":false,"pushed_at":"2024-06-18T01:28:42.000Z","size":78,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T02:05:24.722Z","etag":null,"topics":["ansible","molecule","postgresql","replication","tox"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buluma.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"buluma"}},"created_at":"2022-04-21T12:56:50.000Z","updated_at":"2022-06-18T02:34:32.000Z","dependencies_parsed_at":"2024-01-08T20:03:06.734Z","dependency_job_id":"f893ba77-95bf-4198-b665-5a964e7e51e5","html_url":"https://github.com/buluma/ansible-role-postgresql_replication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-postgresql_replication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-postgresql_replication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-postgresql_replication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buluma%2Fansible-role-postgresql_replication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buluma","download_url":"https://codeload.github.com/buluma/ansible-role-postgresql_replication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240832762,"owners_count":19864987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","molecule","postgresql","replication","tox"],"created_at":"2024-11-11T06:10:05.490Z","updated_at":"2026-05-06T01:35:03.713Z","avatar_url":"https://github.com/buluma.png","language":"Jinja","funding_links":["https://github.com/sponsors/buluma"],"categories":[],"sub_categories":[],"readme":"# [Ansible role postgresql_replication](#ansible-role-postgresql_replication)\n\nAnsible role to deploy postgresql software with replication\n\n|GitHub|Issues|Pull Requests|Version|Downloads|\n|------|------|-------------|-------|---------|\n|[![github](https://github.com/buluma/ansible-role-postgresql_replication/actions/workflows/molecule.yml/badge.svg)](https://github.com/buluma/ansible-role-postgresql_replication/actions/workflows/molecule.yml)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-postgresql_replication.svg)](https://github.com/buluma/ansible-role-postgresql_replication/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-postgresql_replication.svg)](https://github.com/buluma/ansible-role-postgresql_replication/pulls/)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-postgresql_replication.svg)](https://github.com/buluma/ansible-role-postgresql_replication/releases/)|[![Ansible Role](https://img.shields.io/ansible/role/d/buluma/postgresql_replication)](https://galaxy.ansible.com/ui/standalone/roles/buluma/postgresql_replication/documentation)|\n\n## [Example Playbook](#example-playbook)\n\nThis example is taken from [`molecule/default/converge.yml`](https://github.com/buluma/ansible-role-postgresql_replication/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.\n\n```yaml\n---\n- become: true\n  gather_facts: true\n  hosts: all\n  name: Converge\n  roles:\n    - role: buluma.postgresql_replication\n```\n\nThe machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/buluma/ansible-role-postgresql_replication/blob/master/molecule/default/prepare.yml):\n\n```yaml\n---\n- become: true\n  gather_facts: false\n  hosts: all\n  name: Prepare\n  roles:\n    - role: buluma.bootstrap\n    - role: enix.postgresql\n```\n\nAlso see a [full explanation and example](https://buluma.github.io/how-to-use-these-roles.html) on how to use these roles.\n\n## [Role Variables](#role-variables)\n\nThe default values for the variables are set in [`defaults/main.yml`](https://github.com/buluma/ansible-role-postgresql_replication/blob/master/defaults/main.yml):\n\n```yaml\n---\npostgresql_replication__group: postgresql\npostgresql_replication__group_master: postgresql_master\npostgresql_replication__group_replicas: postgresql_replicas\npostgresql_replication__password: replicate\npostgresql_replication__trigger_file: /tmp/MasterNow\npostgresql_replication__user: replicate\npostgresql_replication__waldir: /var/lib/postgresql/wal-slave/\npostgresql_replication__walsegments: 64\npostgresql_replication__walsenders: 3\n```\n\n## [Requirements](#requirements)\n\n- pip packages listed in [requirements.txt](https://github.com/buluma/ansible-role-postgresql_replication/blob/master/requirements.txt).\n\n## [State of used roles](#state-of-used-roles)\n\nThe following roles are used to prepare a system. You can prepare your system in another way.\n\n| Requirement | GitHub |\n|-------------|--------|\n|[buluma.bootstrap](https://galaxy.ansible.com/buluma/bootstrap)|[![Build Status GitHub](https://github.com/buluma/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-bootstrap/actions)|\n|[enix.postgresql](https://galaxy.ansible.com/buluma/enix.postgresql)|[![Build Status GitHub](https://github.com/buluma/enix.postgresql/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/enix.postgresql/actions)|\n\n## [Context](#context)\n\nThis role is part of many compatible roles. Have a look at [the documentation of these roles](https://buluma.github.io/) for further information.\n\nHere is an overview of related roles:\n\n![dependencies](https://raw.githubusercontent.com/buluma/ansible-role-postgresql_replication/png/requirements.png \"Dependencies\")\n\n## [Compatibility](#compatibility)\n\nThis role has been tested on these [container images](https://hub.docker.com/u/robertdebock):\n\n|container|tags|\n|---------|----|\n|[Debian](https://hub.docker.com/r/robertdebock/debian)|all|\n\nThe minimum version of Ansible required is 2.1, tests have been done on:\n\n- The previous version.\n- The current version.\n- The development version.\n\nIf you find issues, please register them on [GitHub](https://github.com/buluma/ansible-role-postgresql_replication/issues).\n\n## [License](#license)\n\n[Apache-2.0](https://github.com/buluma/ansible-role-postgresql_replication/blob/master/LICENSE).\n\n## [Author Information](#author-information)\n\n[Michael Buluma](https://buluma.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuluma%2Fansible-role-postgresql_replication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuluma%2Fansible-role-postgresql_replication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuluma%2Fansible-role-postgresql_replication/lists"}