3 ms·
About ansible: I really like the idea and popularity of ansible but find it so painful to use. YAML sucks, and testing is not straightforward (I use molecule in
by ornornor 9mo ago
About ansible: I really like the idea and popularity of ansible but find it so painful to use. YAML sucks, and testing is not straightforward (I use molecule in docker containers with geerlingguy’s spécial images)
What’s your workflow for writing tested playbooks?
- tuananh 9mo agowait until you have to use puppet :D
- jdmoreira 9mo agoclaude code is really good at it from my experience
- JimBlackwood 9mo agoWhat do you want to do in a playbook that requires it to be tested? We keep our roles very simple and they will not do anything complicated. Ansible is for configuring a machine, that’s it. If we need to do anything more complicated, we’ll write it in a testable program (usually in Go).
- ornornor 9mo agoWhat do you do that doesn't need to be tested? I have a playbook for my dotfiles/rebuilding a personal machine from scratch. So I test that the files end up where they're supposed to be, the permissions, the packages, that whatever software I installed from source are indeed setup correctly and running, etc. Same for roles that need to provably configure a piece of software.