From 0b4752fd72d5213dc9ea90e20dc15dca98f9fbe1 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 19 Apr 2019 14:37:26 +0200 Subject: [PATCH] Use example file for inventory, instead of committing own file --- .gitignore | 1 + README.md | 6 ++---- inventory | 6 ------ inventory.example | 8 ++++++++ 4 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 inventory create mode 100644 inventory.example diff --git a/.gitignore b/.gitignore index be96dfd..2434e9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ passwords/ peertube.retry +inventory diff --git a/README.md b/README.md index 7b37ef6..14dd613 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/inventory b/inventory deleted file mode 100644 index 7f91850..0000000 --- a/inventory +++ /dev/null @@ -1,6 +0,0 @@ -[peertube] -root@testing.peertube.social domain=testing.peertube.social -#felix@peertube.social domain=peertube.social - -[all:vars] -ansible_connection=ssh diff --git a/inventory.example b/inventory.example new file mode 100644 index 0000000..473c349 --- /dev/null +++ b/inventory.example @@ -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