kamal-ansible-manager
kamal-ansible-manager copied to clipboard
Ideas for tweaks and/or extra features
Thank you for putting this together. I'd had some ideas about using ansible for setting up docker hosts for a while, but your setup is much better organized than mine was.
I took my old ideas, applied them to your setup, and published my results here:
https://git.sr.ht/~tuxpup/kamal-ansible-manager
I think I did a few things you may want to incorporate here:
- I used
uvto make it easier to run ansible. - I then used that to install
ansible-lintand incorporated most all of its suggestions. - I added a role (and tasks) for setting up admin users and their ssh keys. I use this to run kamal as non-root and have a separate interactive user. It's handy to have that distinction in sudo logs.
- I have it copy a volume backup script that I find useful.
- I moved the hosts.ini setup to hosts.yml and added some username and shared directory setup to that. The big benefit of using hosts.yml instead of ini was that it's easy to read the same yml file in kamal's deploy.yml using erb, and act on those values there also.
There are possibly a few other things I added/changed.
I'm mainly opening this issue to say "thanks!" and offer my changes back to you. If you see any that you'd particularly like me to turn into a PR, let me know and I'm happy to do that.
Thanks again for making this and writing about it!