{"id":29356955,"url":"https://github.com/cesnet/ansible-role-postgresql","last_synced_at":"2026-02-22T21:03:42.996Z","repository":{"id":118327653,"uuid":"210395044","full_name":"CESNET/ansible-role-postgresql","owner":"CESNET","description":"Ansible Galaxy role cesnet.postgresql","archived":false,"fork":false,"pushed_at":"2026-01-27T13:42:33.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-01-28T00:53:04.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/CESNET.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-23T15:52:36.000Z","updated_at":"2026-01-27T13:27:55.000Z","dependencies_parsed_at":"2024-12-12T07:32:57.507Z","dependency_job_id":"4ac81c8b-93f1-4c71-b401-79eead812641","html_url":"https://github.com/CESNET/ansible-role-postgresql","commit_stats":null,"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/CESNET/ansible-role-postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CESNET","download_url":"https://codeload.github.com/CESNET/ansible-role-postgresql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CESNET%2Fansible-role-postgresql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29726858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-07-09T05:41:08.309Z","updated_at":"2026-02-22T21:03:42.991Z","avatar_url":"https://github.com/CESNET.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"postgresql\n==========\n\nAnsible Galaxy role [cesnet.postgresql](https://galaxy.ansible.com/cesnet/postgresql) that installs PostgreSQL \nserver from PGDG repository.\n\nRole Variables\n--------------\n\n- **postgresql_version** - version to install, prevents automatic major version upgrade, default is 17\n- **postgresql_hold_upgrades** - block server from automcatic upgrades and thus restarts, default is yes\n- **postgresql_allow_remote_connections** - boolean flag for listening on all network interfaces, default is yes\n- **postgresql_daily_backup** - boolean flag whether to dump DB content into file /var/lib/postgresql/backup.sql.xz, default is True\n- **postgresql_daily_backup_hour** and **postgresql_daily_backup_minute** - the hour and minute for the cron job making the DB dump, default is 20:50  \n- **postgresql_daily_backup_more_commands** - shell commands to be added to the backup cronjob, perhaps copying the backup somewhere else\n- **postgresql_settings** - dictionary of key-value pairs to be set using ALTER SYSTEM in $PGDATA/postgresql.auto.conf file, which is read in addition to postgresql.conf\n- **postgresql_db_user** - when set, creates a PostgreSQL user\n- **postgresql_db_user_password** - password for the user\n- **postgresql_db_name** - when set, creates a database owned by the user\n- **postgresql_certificate_file** - path to PEM-encoded certificate, used for remote TLS connections (JDBC checks it)\n- **postgresql_certificate_key_file** - path to private key\n- **postgresql_certificate_chain_file** - path to CA certificate chain\n- **postgresql_pgwatch_password** - if defined, user pgwatch with connect privilege is created and extension pg_stat_statements is added\n- **postgresql_pg_hba_add_allow_all** when set to false, pg_hba.conf entry allowing all connections isn't added.\n- **postgresql_pg_hba_auth_method** allows changing the auth method for the pg_hba added by this role, default is md5 (for backward compatibility).\n        \nExample Playbook\n----------------\n```yaml\n- hosts: all\n  roles:\n    - role: cesnet.postgresql\n      vars:\n        postgresql_version: 17\n        postgresql_hold_upgrades: no\n        postgresql_allow_remote_connections: yes\n        postgresql_daily_backup: yes\n        postgresql_daily_backup_hour: 20\n        postgresql_daily_backup_minute: 50\n        postgresql_settings:\n            max_connections: 100\n            max_pred_locks_per_transaction: 64\n        postgresql_db_user: \"john\"\n        postgresql_db_user_password: \"X6v38GYN3RxZUYg\"\n        postgresql_db_name: \"cities\"\n        postgresql_certificate_file: \"/etc/ssl/localcerts/host_cert.pem\"\n        postgresql_certificate_key_file: \"/etc/ssl/localcerts/host_key.pem\"\n        postgresql_certificate_chain_file: \"/etc/ssl/localcerts/terena_ssl_ca_3.pem\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesnet%2Fansible-role-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesnet%2Fansible-role-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesnet%2Fansible-role-postgresql/lists"}