roles/postgresql-server: Support SSL configuration

This commit adds a task to generate a PostgreSQL configuration file from
a template.  Previously, the default configuration file generated by
`initdb` was sufficient, but in order to enable SSL connections, some
changes to it are required.

Naturally, SSL connections require a server certificate, so the
*postgresql-server* role will now also copy certificate files to the
managed node, if any.
This commit is contained in:
2020-07-14 10:52:25 -05:00
parent 3dcc0aeacd
commit f4e5aacf52
4 changed files with 723 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
- name: reload systemd
command: systemctl daemon-reload
- name: restart postgresql server
service:
name: postgresql
state: restarted
- name: reload postgresql server
service:
name=postgresql