this post was submitted on 30 Apr 2024
80 points (95.5% liked)

Selfhosted

40183 readers
576 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello, I have recently been seeing a boom in people using ansible for automating setting up vps's, services, ...

Is it worth it to learn ansible to do also automate the way I setup everything, or is a bash script good enough ( I know some bash scripting but ansible seems like it could be more worth the time to learn )?

you are viewing a single comment's thread
view the rest of the comments
[–] simonmicro@programming.dev 16 points 6 months ago (1 children)

I think it is a great way to document what you have done too. Especially with larger setups this can be quite time-intensive.

Then add that you may want to dynamically reconfigure your systems to interact with each other and then Ansibles template-rendering comes in really handy.

Finally, it is standardized - so other peopke can work with it too (relevant in work context).

[–] crony@lemmy.cronyakatsuki.xyz 2 points 6 months ago (3 children)

This sounds amazing!

You have any good resources to recommend for learning ansible?

[–] Tywele@lemmy.dbzer0.com 5 points 6 months ago (1 children)

I recently began learning Ansible and this playlist was very helpful with learning.

[–] PipedLinkBot@feddit.rocks 2 points 6 months ago

Here is an alternative Piped link(s):

this playlist

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source; check me out at GitHub.

[–] simonmicro@programming.dev 4 points 6 months ago

Sorry, but I fear not. Ansible has a good getting started out there, but I think you'll learn the most just using it.

Maybe a broad roadmap... Try to add systems. Test them via Ansible-Ping. Change some configs (add file, add line-in-file). Add handlers to react to changes by restarting services. Add host variables and customize behavior per host. Add templates...

[–] slazer2au@lemmy.world 3 points 6 months ago (1 children)

Learn Linux TV has a good series as does Jeff Geerling both are free on YouTube.

I prefer the Learn Linux TV one as it goes through how to integrate git and different distros.

[–] Cyber@feddit.uk 2 points 6 months ago

Yeah +1 for LLTV