{"id":19472404,"url":"https://github.com/aboutbits/ansible-postgresql","last_synced_at":"2026-04-09T08:36:36.350Z","repository":{"id":115449865,"uuid":"580785163","full_name":"aboutbits/ansible-postgresql","owner":"aboutbits","description":"Ansible - PostgreSQL Role","archived":false,"fork":false,"pushed_at":"2023-09-06T14:01:28.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T05:53:05.677Z","etag":null,"topics":["ansible","ansible-role","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboutbits.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-12-21T12:51:13.000Z","updated_at":"2023-08-07T05:43:25.000Z","dependencies_parsed_at":"2025-01-08T05:52:39.850Z","dependency_job_id":"9035d489-0e46-4962-ba12-341f721f4319","html_url":"https://github.com/aboutbits/ansible-postgresql","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fansible-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutbits","download_url":"https://codeload.github.com/aboutbits/ansible-postgresql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240692408,"owners_count":19842248,"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","ansible-role","postgresql"],"created_at":"2024-11-10T19:14:20.795Z","updated_at":"2025-11-19T08:02:33.052Z","avatar_url":"https://github.com/aboutbits.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible PostgreSQL Role\n\nPostgreSQL installation role.\n\n## Role Variables\n\n- `postgresql_postgres_password`: The password that should be set for the default postgres user\n- `postgresql_backup`: All information related to backups and if they should be enabled or not\n- `postgresql_users`: A list of users that should be created.\n- `postgresql_databases`: A list of databases including the schemas that should be created.\n- `postgresql_privileges`: A list of privileges that should be granted for the different users to the different databases/schemas.\n- `postgresql_default_privileges`: A list of privileges that should be set as defaults for the different users to tables/sequences inside the given databases/schemas.\n\n## Example Playbook\n\n```yaml\n- hosts: all\n  tasks:\n    - ansible.builtin.include_role:\n        name: ansible-postgresql\n      vars:\n        postgresql_postgres_password: xxx\n        postgresql_users:\n          - name: acme-user\n            password: xxx\n        postgresql_databases:\n          - name: acme-product\n            schema: app\n            owner: acme-user\n        postgresql_privileges:\n          - database: acme-product\n            schema: app\n            user: acme-user\n            permissions: WRITE\n        postgresql_privileges:\n          - database: acme-product\n            schema: app\n            user: acme-reporting\n            permissions: READ\n        postgresql_default_privileges:\n          - database: acme-product\n            schema: app\n            user: acme-reporting\n            owner: acme-product\n            permissions: READ\n        postgresql_backup:\n          enabled: true\n          cron: 30 03 * * *\n          directory: /usr/local/share/postgres\n```\n\n## Build \u0026 Publish\n\nTo build and publish the role, visit the GitHub Actions page of the repository and trigger the workflow \"Release Package\" manually.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutbits%2Fansible-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutbits%2Fansible-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutbits%2Fansible-postgresql/lists"}