Re:Chezmoi – Manage your dotfiles across multiple diverse ma...
by mxuribe on Monday August 29, 2022 @08:36AM
(#32637394)
Oh, if you wouldn't mind sharing, that would be greatly appreciated! For set up of my machine(s), I was going to go the route of using a bash or python script...but when i learned (a high level summary) of ansible, figured that might be a skill that i can leverage for work in the future too. So, I'm trying to play, learn about ansible. (I already have basics of python, so ansible was an add-on for me.) The more that i can learn from examples of others, the better i can learn what are good practices, etc. Thanks!
[ Parent
| on HN ]
Re:Chezmoi – Manage your dotfiles across multiple diverse ma...
by cybrox on Monday August 29, 2022 @11:23AM
(#32639373)
I've shared an example based on what I currently use here: https://news.ycombinator.com/item?id=32639329 :)
I used to use bash scripts myself, however, I did transition to Ansible because I often ran into problems with replayability of scripts (running them multiple times).
Ansible (and other tools like it) handle stuff like "change a line in this config file to that" or "add this flag here when xyz" easily and you can run it as many times as you like.
Also, Ansible Galaxy offers a lot of roles ready-to-use such as docker setup or asdf version manager plugin management. Though a lot of it is often not that well maintained.