Skip Navigation

Incredibly Lost and frustrated trying to set up self hosted lemmy server

So I've been scratching my head for two days trying to get my own lemmy server up and running.

I have limited server hosting experience but I used to design html websites back in high school through wordpress and was able to successfully set up my own mastadon instance so I'm pretty decent at following instructions, but what keeps tripping me up is ansible and how the heck it works.

The instructions (https://github.com/LemmyNet/lemmy-ansible) are telling me to install ansible on my local machine using python3. On my windows machine I installed ansible using python but when i type the ansible command into terminal it gives me no command found. Is linux required as a host machine?

I have an account over at digitalocean and I'm willing to host my own ubuntu machine over there to get my instance running but I cannot for the life of me figure out how ansible is supposed to set up a server on my windows machine. ANY help would be GREATLY appreciated.... I'm tearing my hair out and feel incredibly stupid right now :D

32

You're viewing a single thread.

32 comments
  • Install wsl for windows Ubuntu default.(can install wsl in PowerShell).

    Install Ansible in wsl, create ssh keys to your VPS, follow those instructions.

    On my Ubuntu server I did literally nothing but the ssh key generation.

    • Following the instructions using wsl and I get met with the following error after running the playbook:

      "fatal: [[email protected]]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host example.com port 22: Network is unreachable", "unreachable": true}"

      Where do I enter my ssh info?

    • I think this is one of the more sensible answers here. If your workstation is windows, then utilize WSL for ansible and deploy onto a ubuntu or debian host (I'm assuming it works fine on debian, I used ubuntu). You might run into some issues with ansible dependencies as the readme doesn't seem to cover everything from what i remember, but once ansible works and has the correct configs, deployment is super easy.

32 comments