I'm setting this repo up to help others see a way to start off cleanly using the Perfect Media Server, just after setting up things on the Manual Install on Ubuntu page.
Once your server is setup and configured slightly (MergerFS/SnapRaid/Samba/etc.), you'll want to ensure you have a remote user all setup for using Ansible with it.
The most this user will need is a SSH key setup for connecting, and sudo permissions. Check your OS's notes on how to add a user, and add them to the sudo group.
Setup the remote side for SSH key logins:
ssh-copy-id user@host
This repo makes heavy use of Ansible to do a lot of the work for setting up Docker and Docker Compose.
python3 -m pip install --user ansible
- Add or update the host entry in
hosts.ini - Target host with roles in
run.yaml - Ensure needed roles are installed in
requirements.yaml- Or manually put them in the
roles/
- Or manually put them in the
- Optional: Add entry in
makefilefor easier time using Ansible - Setup
group_vars/withall.yamlandperfectmediaserver.yamlfor special configs - Put password in
.vault-passwordfor using Ansible Vault
make reqsto download the roles fromrequirements.yamlintogalaxy_roles/make pmsto apply the configs to the server!
- Update
requirements.yamlto include the roles you want OR manually add roles into theroles/dir. - Add configuration details into
group_vars/all.yamlorgroup_vars/perfectmediaserver.yamlas needed. - Add the new role into the right section for
run.yaml. - As needed, use
make reqsormake forcereqsto download/update the required roles from Ansible Galaxy. - Use
make pmsto apply the new settings to your Perfece Media Server.