{"id":24863713,"url":"https://github.com/stuvusit/postgresql","last_synced_at":"2026-04-09T11:03:20.232Z","repository":{"id":18535037,"uuid":"84548039","full_name":"stuvusIT/postgresql","owner":"stuvusIT","description":"Set up a PostgreSQL Server with Ansible","archived":true,"fork":false,"pushed_at":"2022-05-18T11:25:42.000Z","size":60,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T04:43:37.232Z","etag":null,"topics":["ansible","ansible-role","arch","debian","postgres","postgresql","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuvusIT.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}},"created_at":"2017-03-10T10:23:43.000Z","updated_at":"2025-06-21T11:54:22.000Z","dependencies_parsed_at":"2022-08-17T18:30:50.263Z","dependency_job_id":null,"html_url":"https://github.com/stuvusIT/postgresql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stuvusIT/postgresql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuvusIT%2Fpostgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuvusIT%2Fpostgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuvusIT%2Fpostgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuvusIT%2Fpostgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuvusIT","download_url":"https://codeload.github.com/stuvusIT/postgresql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuvusIT%2Fpostgresql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28132995,"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","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ansible","ansible-role","arch","debian","postgres","postgresql","ubuntu"],"created_at":"2025-01-31T23:34:19.134Z","updated_at":"2025-12-30T22:06:52.561Z","avatar_url":"https://github.com/stuvusIT.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgresql\n\nThis role installs and configures a PostgreSQL server.\nIt allows to set all configuration variables supported by PostgreSQL.\n\nThis role also makes PostgreSQL comply more to the FHS.\nThis is accomplished by moving configuration to /etc, logs to /var/log, and the databases to /var/lib.\n\n## Requirements\n\nDebian 11 (Bullseye)\n\n## Role Variables\n\nThis role seriously has a ton of variables.\nInstead of copying the defaults file here, look it [up there](defaults/main.yml).\nAll variables from postgresql.conf are called exactly like they are called in the file but with `postgres_` prepended.\n\n| Name                      |    Default/Required     | Description                                                                                                                                      |\n| ------------------------- | :---------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `postgres_initdb`         |        `initdb`         | Path to the initdb executable. On Ubuntu, the default value is automatically discovered.                                                         |\n| `postgres_home_directory` | `/var/lib/postgresHome` | Path to the home of the postgres user                                                                                                            |\n| `postgres_users`          |          `[]`           | List of dicts of [postgresql_user](https://docs.ansible.com/ansible/latest/collections/community/general/postgresql_user_module.html) parameters |\n| `postgres_dbs`            |          `[]`           | List of dicts of [postgresql_db](https://docs.ansible.com/ansible/latest/collections/community/general/postgresql_db_module.html) parameters     |\n\n### roles\n\n| Name         | Default/Required | Description           |\n| ------------ | :--------------: | --------------------- |\n| `password`   |                  | The password to set   |\n| `privileges` |                  | The privileges to set |\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\n```yml\n- hosts: postgres\n  roles:\n    - role: postgresql\n      postgres_users:\n        - name: synapse\n          password: TODO-change-me\n      postgres_dbs:\n        - name: synapse\n          encoding: UTF8\n          lc_collate: C\n          lc_ctype: C\n          template: template0\n          owner: synapse\n\n```\n\n## License\n\nThis work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/).\n\n## Author Information\n\n- [Janne Heß](https://github.com/dasJ)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuvusit%2Fpostgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuvusit%2Fpostgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuvusit%2Fpostgresql/lists"}