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: [<vps IP>]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: root@<vps IP>: 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.
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.
Ok thanks.
Which docs are you referring to? Your info is not here:
https://join-lemmy.org/docs/en/administration/install_ansible.html
Nor here: