this post was submitted on 06 Sep 2021
5 points (100.0% liked)

Lemmy Support

4713 readers
37 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Hello, I am having trouble using ansible to setup an instance of lemmy. I'm not too sure if the ansible stuff needs to be run on local pc rather than VPS? I assume its on VPS. I am following the documentation over at https://join-lemmy.org/docs/en/administration/install_ansible.html

I am getting the following error when running ansible-playbook lemmy.yml --become

fatal: []: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: root@: Permission denied (publickey,password).", "unreachable": true}

Am I suppose to ssh into my the remote machine from the remote machine? I'm a little confused as there doesn't seem to be anywhere for me to put the private ssh key or a password.

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 3 years ago (1 children)

Ansible is usually used to configure a remote machine. So the expectation is to run it from your local computer or some other server that has SSH access to the VPS. This is mentioned in the docs:

First, you need to install Ansible on your local computer. You also need to install the Docker SDK for Python using pip install docker (more info in Ansible documentation).

Ansible will SSH into the VPS and configure it according to the playbook.