From 27626051bf665164f6b65cdd03a37e6094720697 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 18 Apr 2019 15:16:35 +0200 Subject: [PATCH] Get it working on peertube.social --- README.md | 5 ++++- inventory | 1 + templates/env | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e4c7d2..7b37ef6 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,9 @@ Configure your ssh connection in `inventory`. -Install Ansible: +Install Python and Ansible: + apt install python pip2 install ansible Run the playbook: @@ -13,3 +14,5 @@ Run the playbook: ansible-playbook --become -K peertube.yml It will prompt for root password to escalate privileges through `sudo`. + +Note: If you run this on an existing server, make sure the file `passwords/*your-server*/postgres` exists and contains the correct password. Otherwise Ansible will change the password in Peertube, and it won't be able to connect to the database. diff --git a/inventory b/inventory index 7ff976d..d276bad 100644 --- a/inventory +++ b/inventory @@ -1,5 +1,6 @@ [peertube] root@testing.peertube.social domain=testing.peertube.social +felix@peertube.social domain=peertube.social [all:vars] ansible_connection=ssh diff --git a/templates/env b/templates/env index ff1469e..b5592da 100644 --- a/templates/env +++ b/templates/env @@ -8,5 +8,5 @@ PEERTUBE_SMTP_FROM=info@{{ domain }} PEERTUBE_SMTP_TLS=false PEERTUBE_ADMIN_EMAIL=info@{{ domain }} -POSTGRES_USER=peertube +POSTGRES_USER=postgres POSTGRES_PASSWORD={{ postgres_password }}