Role Reference
This page describes each role in the pgEdge Ansible Collection and provides
links to detailed documentation for each role.
Role Execution Order
Roles must be applied in a specific order to satisfy dependencies. The
following list shows the correct execution sequence:
init_server - Prepares all servers in the
cluster.
install_repos - Installs the pgEdge and PGDG
package repositories.
install_pgedge - Installs pgEdge packages on
pgEdge nodes.
setup_postgres - Initializes PostgreSQL on
pgEdge nodes.
install_etcd - Installs etcd on pgEdge nodes
(HA only).
install_patroni - Installs Patroni on pgEdge
nodes (HA only).
install_backrest - Installs PgBackRest on
backup-capable nodes.
setup_etcd - Configures and starts etcd (HA only).
setup_patroni - Configures Patroni and starts
the HA cluster (HA only).
setup_haproxy - Configures HAProxy on haproxy
nodes (HA only).
setup_pgedge - Creates Spock nodes and
establishes subscriptions.
setup_backrest - Configures PgBackRest and
runs the first backup.
Role Categories
The roles in this collection fall into four categories.
Configuration Foundation
| Role |
Description |
role_config |
Provides shared variables and computed values to all other roles. You do not call this role directly. |
Server Preparation
| Role |
Description |
init_server |
Initializes servers with required packages and system configuration. |
install_repos |
Configures the pgEdge and PGDG package repositories. |
Software Installation
Service Configuration