This Ansible role installs and prepares a PostgreSQL database server for Opencast.
This role requires the PostgreSQL community collection:
ansible-galaxy collection install community.postgresql
opencast_postgresql_version
- PostgreSQL major version to install (default:
12
) - Enables CentOS AppStream
- PostgreSQL major version to install (default:
opencast_postgresql_user:
- Database user to create (default:
opencast
)
- Database user to create (default:
opencast_postgresql_password
- Databse password for user (required)
opencast_postgresql_database
- Database name (default:
opencast
)
- Database name (default:
opencast_postgresql_connection_hosts
- List of hosts allowed to connect to database (default:
[127.0.0.1/32, ::1/128]
)
- List of hosts allowed to connect to database (default:
Example of how to configure and use the role:
- hosts: servers
become: true
roles:
- role: elan.opencast_postgresql
opencast_postgresql_password: secret