├── .ansible-lint ├── .travis.yml ├── .yamllint ├── LICENSE ├── README.md ├── defaults └── main │ ├── 001-postgresql.yml │ └── 002-repmgr.yml ├── handlers └── main.yml ├── inventory.example.yml ├── meta └── main.yml ├── molecule └── default │ ├── collections.yml │ ├── converge.yml │ ├── molecule.yml │ ├── prepare.yml │ └── verify.yml ├── requirements.txt ├── tasks ├── check_pg_version_mismatch.yml ├── configure.yml ├── databases.yml ├── extensions.yml ├── extensions │ ├── configure_repmgr.yml │ ├── contrib.yml │ ├── detect_repmgr_primary.yml │ ├── dev_headers.yml │ ├── postgis.yml │ └── repmgr.yml ├── fdw.yml ├── install_apt.yml ├── main.yml ├── schemas.yml ├── users.yml └── users_privileges.yml ├── templates ├── etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2 ├── etc_systemd_system_postgresql.service.d_custom.conf.j2 ├── pg_hba.conf.j2 ├── pg_ident.conf.j2 ├── pgpass.j2 ├── postgresql.conf-11.j2 ├── postgresql.conf-11.orig ├── postgresql.conf-12.j2 ├── postgresql.conf-12.orig ├── postgresql.conf-13.j2 ├── postgresql.conf-13.orig ├── repmgr.conf-5.1.j2 ├── repmgr.conf-5.1.orig ├── repmgr.conf-5.2.j2 ├── repmgr.conf-5.2.orig ├── repmgr.conf-5.3.j2 ├── repmgr.conf-5.3.orig ├── repmgr.custom.conf.j2 ├── repmgr_barman_ssh_config.j2 ├── repmgr_logroate.j2 └── sudoers.postgresql.j2 └── vars ├── bionic.yml ├── bullseye.yml ├── buster.yml ├── empty.yml ├── focal.yml ├── postgresql_11.yml ├── postgresql_12.yml └── postgresql_13.yml /.ansible-lint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/.ansible-lint -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/.travis.yml -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/.yamllint -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/README.md -------------------------------------------------------------------------------- /defaults/main/001-postgresql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/defaults/main/001-postgresql.yml -------------------------------------------------------------------------------- /defaults/main/002-repmgr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/defaults/main/002-repmgr.yml -------------------------------------------------------------------------------- /handlers/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/handlers/main.yml -------------------------------------------------------------------------------- /inventory.example.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/inventory.example.yml -------------------------------------------------------------------------------- /meta/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/meta/main.yml -------------------------------------------------------------------------------- /molecule/default/collections.yml: -------------------------------------------------------------------------------- 1 | --- 2 | collections: 3 | - community.crypto 4 | -------------------------------------------------------------------------------- /molecule/default/converge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/molecule/default/converge.yml -------------------------------------------------------------------------------- /molecule/default/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/molecule/default/molecule.yml -------------------------------------------------------------------------------- /molecule/default/prepare.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/molecule/default/prepare.yml -------------------------------------------------------------------------------- /molecule/default/verify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/molecule/default/verify.yml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/requirements.txt -------------------------------------------------------------------------------- /tasks/check_pg_version_mismatch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/check_pg_version_mismatch.yml -------------------------------------------------------------------------------- /tasks/configure.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/configure.yml -------------------------------------------------------------------------------- /tasks/databases.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/databases.yml -------------------------------------------------------------------------------- /tasks/extensions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/extensions.yml -------------------------------------------------------------------------------- /tasks/extensions/configure_repmgr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/extensions/configure_repmgr.yml -------------------------------------------------------------------------------- /tasks/extensions/contrib.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/extensions/contrib.yml -------------------------------------------------------------------------------- /tasks/extensions/detect_repmgr_primary.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/extensions/detect_repmgr_primary.yml -------------------------------------------------------------------------------- /tasks/extensions/dev_headers.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/extensions/dev_headers.yml -------------------------------------------------------------------------------- /tasks/extensions/postgis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/extensions/postgis.yml -------------------------------------------------------------------------------- /tasks/extensions/repmgr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/extensions/repmgr.yml -------------------------------------------------------------------------------- /tasks/fdw.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/fdw.yml -------------------------------------------------------------------------------- /tasks/install_apt.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/install_apt.yml -------------------------------------------------------------------------------- /tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/main.yml -------------------------------------------------------------------------------- /tasks/schemas.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/schemas.yml -------------------------------------------------------------------------------- /tasks/users.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/users.yml -------------------------------------------------------------------------------- /tasks/users_privileges.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/tasks/users_privileges.yml -------------------------------------------------------------------------------- /templates/etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2 -------------------------------------------------------------------------------- /templates/etc_systemd_system_postgresql.service.d_custom.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/etc_systemd_system_postgresql.service.d_custom.conf.j2 -------------------------------------------------------------------------------- /templates/pg_hba.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/pg_hba.conf.j2 -------------------------------------------------------------------------------- /templates/pg_ident.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/pg_ident.conf.j2 -------------------------------------------------------------------------------- /templates/pgpass.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/pgpass.j2 -------------------------------------------------------------------------------- /templates/postgresql.conf-11.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/postgresql.conf-11.j2 -------------------------------------------------------------------------------- /templates/postgresql.conf-11.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/postgresql.conf-11.orig -------------------------------------------------------------------------------- /templates/postgresql.conf-12.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/postgresql.conf-12.j2 -------------------------------------------------------------------------------- /templates/postgresql.conf-12.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/postgresql.conf-12.orig -------------------------------------------------------------------------------- /templates/postgresql.conf-13.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/postgresql.conf-13.j2 -------------------------------------------------------------------------------- /templates/postgresql.conf-13.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/postgresql.conf-13.orig -------------------------------------------------------------------------------- /templates/repmgr.conf-5.1.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr.conf-5.1.j2 -------------------------------------------------------------------------------- /templates/repmgr.conf-5.1.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr.conf-5.1.orig -------------------------------------------------------------------------------- /templates/repmgr.conf-5.2.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr.conf-5.2.j2 -------------------------------------------------------------------------------- /templates/repmgr.conf-5.2.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr.conf-5.2.orig -------------------------------------------------------------------------------- /templates/repmgr.conf-5.3.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr.conf-5.3.j2 -------------------------------------------------------------------------------- /templates/repmgr.conf-5.3.orig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr.conf-5.3.orig -------------------------------------------------------------------------------- /templates/repmgr.custom.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr.custom.conf.j2 -------------------------------------------------------------------------------- /templates/repmgr_barman_ssh_config.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr_barman_ssh_config.j2 -------------------------------------------------------------------------------- /templates/repmgr_logroate.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/repmgr_logroate.j2 -------------------------------------------------------------------------------- /templates/sudoers.postgresql.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/templates/sudoers.postgresql.j2 -------------------------------------------------------------------------------- /vars/bionic.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/bionic.yml -------------------------------------------------------------------------------- /vars/bullseye.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/bullseye.yml -------------------------------------------------------------------------------- /vars/buster.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/buster.yml -------------------------------------------------------------------------------- /vars/empty.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/empty.yml -------------------------------------------------------------------------------- /vars/focal.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/focal.yml -------------------------------------------------------------------------------- /vars/postgresql_11.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/postgresql_11.yml -------------------------------------------------------------------------------- /vars/postgresql_12.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/postgresql_12.yml -------------------------------------------------------------------------------- /vars/postgresql_13.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fidanf/ansible-role-postgresql-ha/HEAD/vars/postgresql_13.yml --------------------------------------------------------------------------------