forked from nutomic/peertube.social
Use example file for inventory, instead of committing own file
This commit is contained in:
parent
ae2de6339f
commit
0b4752fd72
4 changed files with 11 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
passwords/
|
||||
peertube.retry
|
||||
inventory
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## 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:
|
||||
|
||||
|
@ -11,8 +11,6 @@ Install Python and Ansible:
|
|||
|
||||
Run the playbook:
|
||||
|
||||
ansible-playbook --become -K peertube.yml
|
||||
|
||||
It will prompt for root password to escalate privileges through `sudo`.
|
||||
ansible-playbook --become peertube.yml
|
||||
|
||||
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.
|
||||
|
|
|
@ -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
8
inventory.example
Normal 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
|
Loading…
Reference in a new issue