Announcing krikri - An Ansible compatible engine written in Crystal

Hey folks,

krikri is an Ansible compatible engine (about 99% of the builtin collection) - In other words: it runs your existing Ansible playbooks without modifications.

I absolutely love Ansible and wanted to see if I could get AI to rewrite it in Crystal and if it could make it faster.

It’s 2 times faster on cold runs than Ansible and about 7 times faster on warm runs.
I also compared against Mitogen: 1.3 times faster on cold runs and about 3 times faster on warm runs.

I’ve tested it against thousands of existing Ansible roles from Ansible galaxy to ensure compatibility.

There’s obviously some things that krikri doesn’t support like all the custom Python plugins, inventory plugins and community modules.

Check out the repo here: GitHub - weirdbricks/krikri: Fast Ansible-compatible automation in Crystal - no Python required · GitHub

Thanks!

Congratulations @weirdbricks! Really nice use-case

Nice work!

Great tool!

I am exploring using krikri to bootstrap grafito into fresh servers

Run into a small problem. If you run krikri in a amd64 system trying to bootstrap a arm system it copies a binary with the amd64 architecture :-)

thank you so much for trying it out! May I please ask you to open an issue for that ? I fully admit I haven’t tested against arm at all, so this would be great to chase down

this should now be fixed - again, thanks for reporting!