3 ms·
I was also using a simple bootstrap script and I too felt I was "killing mosquitos with a bazooka" using Ansible. But I wanted to symlink my Sublime settings.
by palcu 12y ago
I was also using a simple bootstrap script and I too felt I was "killing mosquitos with a bazooka" using Ansible.
But I wanted to symlink my Sublime settings. That meant tinkering with shell code and separating the files in different dirs. Then I wanted to preinstall my Brew apps, but only for Mac.
So these tasks pilled up in shell scripts and became ugly. So Ansible, with it's easy YAML configs, is the perfect tool for a dev like me that wants to setup machines and maintain the configurations synced.
- captn3m0 12y agoYou should take a look at GNU stow. I also felt the same frustration as my bootstrap script got ugly and uglier. And then I shifted to stow. And now its just a single line: stow * --target ~ With respect to ansible, I've been thinking of managing my laptop using just ansible to install new packages, and update configuration (apache, sshd and so on). Kinda like chef-solo, but using ansible. Has anyone done anything like that?
- palcu 12y agoThanks for the tip about Stow, never knew about it and I will research it. Ansible can be used for your local machine without any central server by default. I use this[0] playbook to update my packages daily on my DigitalOcean machines. [0]: https://github.com/palcu/dotfiles/blob/master/playbooks/tasks/ubuntu.yml https://github.com/palcu/dotfiles/blob/master/playbooks/task...