No description
Find a file
2024-09-01 14:54:16 +02:00
defaults remove nginx_default_vhost_ssl var 2024-08-10 11:52:23 +02:00
handlers first commit 2023-12-20 14:04:10 +01:00
Playbooks replace nodejs task by playbook 2024-04-23 20:09:56 +02:00
tasks change from zip to tar.xz 2024-07-24 10:06:34 +02:00
templates Update to v6.2.0 2024-07-19 11:21:59 +02:00
.gitignore first commit 2023-12-20 14:04:10 +01:00
LICENSE first commit 2023-12-20 14:04:10 +01:00
README.md add clean task 2024-07-24 10:06:15 +02:00
Vagrantfile first commit 2023-12-20 14:04:10 +01:00

Peertube - Ansible role

This role covers deployment, configuration and software updates of Peertube. This role is released under MIT Licence and we give no warranty for this piece of software. Currently supported OS - Debian.

You can deploy test instance using Vagrantfile attached to the role.

Then simply: vagrant up

ansible-playbook -b Playbooks/peertube.yml

Then you can then access Peertube from your computer on http://192.168.33.15 (but patient as it takes about 2 minutes to be up and ready.)

Playbook

The playbook includes postgresql, nginx and node roles and deploys entire stack needed to run lemmy. Additional roles are also available in the Ansible roles repos in git.

Tags

You can use tags when you deploy:

  • config: to deploy just config
  • password: to change root user password
  • clean,never: to clean the cache

CHANGELOG

  • 24.07.2024 - Add clean task + change from dwonloading .zip to .tar.xz
  • 20.12.2023 - Role creation

Still need to be fixed or done:

  • At the moment, we have redis-server version 6.0.16 but we have messages in logs that say that it is highly recommended to use a minimum Redis version of 6.2.0
  • Do we need to set trust_proxy in config file for local machine? At the moment, it works without.
  • Some optionnal config on nginx are commented out coz otherwise we get some issues (like not being able to watch a video)
  • Make a SQL backup from Ansible? Here is what is in official documentation:
SQL_BACKUP_PATH="backup/sql-peertube_prod-$(date -Im).bak" && \
    cd /var/www/peertube && sudo -u peertube mkdir -p backup && \
    sudo -u postgres pg_dump -F c peertube_prod | sudo -u peertube tee "$SQL_BACKUP_PATH" >/dev/null