A couple questions about the lemmy-ansible instructions:


Step 1 - “Clone this repo: /lemmy-ansible.git”

QUESTION 1 - Clone it to my local machine, correct? (not directly onto the VPS)

ANSWER: - Yes, clone lemmy-ansible to local.


Step 2 - “Edit the config file”

QUESTION 2 - By default, config.hjson has values like hostname: “{{ domain }}” - and - password: “{{ postgres_password }}”.

  • Are those “{{values}}” automatically pulled from the hosts file?

  • or just directly edit them in the config.hjson file?

ANSWER: - Edit them directly in the config.hjson file.


Thank you for your patience.

I want to do it right / understand.

UPDATE: Installed Lemmy on VPS via SSH

Lionel C-R
link
fedilink
1urte bat

Hi, I did not use the ansible playbook so I have no confirmation of what I’m saying here, just talking from my experience with ansible.

  1. Yes, you need to clone it to your local machine even if it would also work from your VPS it’s much more practical to run ansible from a separate host.
  2. Those {{ values }} are defined somewhere in your ansible inventory. For example {{ domain }} is defined in the hosts file you have to copy (domain=example.com)
@picoblaanket@lemmy.ml
creator
link
fedilink
1urte bat

Yes thank you, I did it just like that. I appreciate the reply.

mtumishi
link
fedilink
3urte bat

Question 1 - yes, ansible is run on your local machine.

@picoblaanket@lemmy.ml
creator
link
fedilink
1
edit-2
6 hilabete

Thanks for the reply. Yeah I have ansible on local.

And running ‘git lemmy-ansible’ on local.

Create a post

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

  • 0 users online
  • 1 user / day
  • 1 user / week
  • 18 users / month
  • 133 users / 6 months
  • 4 subscribers
  • 425 Posts
  • 3.14K Comments
  • Modlog