UCL-MIRSG / ansible-collection-infra

Ansible Collection to configure infrastructure for XNAT and OMERO
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Only copy PG cert to server when postgresql_use_ssl #37

Closed p-j-smith closed 10 months ago

p-j-smith commented 10 months ago

Currently the XNAT role always attempts to copy to PG cert from the cache: https://github.com/UCL-MIRSG/ansible-collection-infra/blob/b5385d78380444da7c10516c4e0e15bc5a7964ea/roles/xnat/tasks/main.yml#L13-L19

This should only be done if postgresql_use_ssl is true