1
0
mirror of https://yerbamate.ml/nutomic/peertube.social synced 2024-11-25 03:38:21 -05:00

Use example file for inventory, instead of committing own file

This commit is contained in:
Felix Ableitner 2019-04-19 14:37:26 +02:00
parent ae2de6339f
commit 0b4752fd72
4 changed files with 11 additions and 10 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
passwords/ passwords/
peertube.retry peertube.retry
inventory

View File

@ -2,7 +2,7 @@
## Setup ## Setup
Configure your ssh connection in `inventory`. Copy `inventory.example` to `inventory`, and configure the hosts you want to work with.
Install Python and Ansible: Install Python and Ansible:
@ -11,8 +11,6 @@ Install Python and Ansible:
Run the playbook: Run the playbook:
ansible-playbook --become -K peertube.yml ansible-playbook --become 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. 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.

View File

@ -1,6 +0,0 @@
[peertube]
root@testing.peertube.social domain=testing.peertube.social
#felix@peertube.social domain=peertube.social
[all:vars]
ansible_connection=ssh

8
inventory.example Normal file
View File

@ -0,0 +1,8 @@
[peertube]
# define the username and hostname that you use for ssh connection, and specify the domain
myuser@example.com domain=example.com
# you can also use a host that is defined in your ssh config
myserver domain=example.com
[all:vars]
ansible_connection=ssh