{"id":21163513,"url":"https://github.com/punktde/ansible-proserver-postgresql","last_synced_at":"2026-05-07T12:31:41.529Z","repository":{"id":139102570,"uuid":"148789175","full_name":"punktDe/ansible-proserver-postgresql","owner":"punktDe","description":" Ansible role to configure PostgreSQL on a proServer.","archived":false,"fork":false,"pushed_at":"2025-01-16T13:31:36.000Z","size":39,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-16T14:14:29.683Z","etag":null,"topics":["ansible","database","postgresql","proserver"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/punktDe.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}},"created_at":"2018-09-14T13:02:29.000Z","updated_at":"2025-01-16T13:31:17.000Z","dependencies_parsed_at":"2024-12-08T00:15:59.630Z","dependency_job_id":null,"html_url":"https://github.com/punktDe/ansible-proserver-postgresql","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fansible-proserver-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fansible-proserver-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fansible-proserver-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/punktDe%2Fansible-proserver-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/punktDe","download_url":"https://codeload.github.com/punktDe/ansible-proserver-postgresql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243609180,"owners_count":20318746,"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","database","postgresql","proserver"],"created_at":"2024-11-20T13:48:09.620Z","updated_at":"2026-05-07T12:31:41.524Z","avatar_url":"https://github.com/punktDe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_ANSIBLE_DOCS --\u003e\n\u003c!--\nDo not edit README.md directly!\n\nThis file is generated automatically by aar-doc and will be overwritten.\n\nPlease edit meta/argument_specs.yml instead.\n--\u003e\n# ansible-proserver-postgresql\n\npostgresql role for Proserver\n\n## Supported Operating Systems\n\n- Debian 12, 13\n- Ubuntu 26.04, 24.04, 22.04\n- FreeBSD [Proserver](https://infrastructure.punkt.de/de/produkte/proserver.html)\n\n## Role Arguments\n\n\n\n#### Options for `postgresql`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `version` | Major version of PostgreSQL to install/configure. Ignored on FreeBSD Proservers (version is determined by the system). | int | no | 13 |\n| `prefix` |  | dict of 'prefix' options | no |  |\n| `users` | Dict of PostgreSQL users to create (key is an arbitrary id, value defines the user). Values should contain: username (str), password (str, optional), role_attributes (dict, optional), hosts (list, optional). | dict | no |  |\n| `privileges` | Dict of privileges to assign (key is arbitrary id). Each entry grants a role access to a database or object. Values should contain: username (str), database (str), type (str, default: table), objs (str, optional), schema (str, optional), privs (list). | dict | no |  |\n| `databases` | Dict of databases to create (key is arbitrary id). At least the root database entry is required by defaults. Values should contain: name (str), owner (str), encoding (str, optional), lc_collate (str, optional), lc_ctype (str, optional), template (str, optional), import_file (path, optional). | dict | no |  |\n| `database_defaults` | Defaults applied to database creation when not set per-database. | dict of 'database_defaults' options | no |  |\n| `postgresql.conf` | Key-value options written to the role-managed include file (ansible.conf), included from postgresql.conf. Consult PostgreSQL documentation for valid settings. | dict | no |  |\n| `repository` | Package repository used to install PostgreSQL (Linux/Debian). | dict of 'repository' options | no |  |\n| `timescaledb` | TimescaleDB installation and tuning (Linux/Debian only). | dict of 'timescaledb' options | no |  |\n\n#### Options for `postgresql.prefix`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `config` | Directory for PostgreSQL configuration (e.g. pg_hba.conf, postgresql.conf include). Defaults depend on system; see defaults/main.yaml (e.g. /etc/postgresql/{{ postgresql.version }}/main/conf.d on Linux). | str | no |  |\n\n#### Options for `postgresql.database_defaults`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `encoding` |  | str | no | UTF-8 |\n| `lc_collate` |  | str | no | en_US.UTF-8 |\n| `lc_ctype` |  | str | no | en_US.UTF-8 |\n| `template` |  | str | no | template0 |\n\n#### Options for `postgresql.repository`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `apt` |  | dict of 'apt' options | no |  |\n\n#### Options for `postgresql.repository.apt`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `key_url` |  | str | no | https://www.postgresql.org/media/keys/ACCC4CF8.asc |\n| `repository` | APT repository URI (default uses apt.postgresql.org). | str | no |  |\n| `suites` | Suite(s) for the repo (default uses distribution release and -pgdg). | list of 'str' | no |  |\n| `package` | Package name (defaults to postgresql-{{ postgresql.version }}). | str | no |  |\n\n#### Options for `postgresql.timescaledb`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `enabled` | Whether to install and enable TimescaleDB. | bool | no | False |\n| `autotune` | Whether to run timescaledb-tune after installation. | bool | no | True |\n| `repository` |  | dict of 'repository' options | no |  |\n\n#### Options for `postgresql.timescaledb.repository`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `apt` |  | dict of 'apt' options | no |  |\n\n#### Options for `postgresql.timescaledb.repository.apt`\n\n|Option|Description|Type|Required|Default|\n|---|---|---|---|---|\n| `key_url` | GPG key URL for the TimescaleDB repo. | str | no |  |\n| `repository` | APT repository line(s) for TimescaleDB. | str | no |  |\n| `package` | Package name (e.g. timescaledb-2-postgresql-{{ postgresql.version }}). | str | no |  |\n\n## Dependencies\nNone.\n\n## Installation\nAdd this role to the requirements.yml of your playbook as follows:\n```yaml\nroles:\n  - name: ansible-proserver-postgresql\n    src: https://github.com/punktDe/ansible-proserver-postgresql\n```\n\nAfterwards, install the role by running `ansible-galaxy install -r requirements.yml`\n\n## Example Playbook\n\n```yaml\n- hosts: all\n  roles:\n    - name: postgresql\n```\n\n\u003c!-- END_ANSIBLE_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fansible-proserver-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpunktde%2Fansible-proserver-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpunktde%2Fansible-proserver-postgresql/lists"}