Downloading specific version of Caddy with plugins from API

1. The problem I’m having:

I’m building automation with Ansible, and I need Caddy with the Cloudflare DNS plugin pinned to a specific version of Caddy (for reproducibility, as I’d like to track versions in Git instead of relying on latest).

2. Error messages and/or full log output:

Not relevant

3. Caddy version:

Not relevant

4. How I installed and ran Caddy:

Currently I’m building it with xcaddy, but for that I have to install Go as well, and it’s a lot of hassle for what could be just a simple API call.

5. Links to relevant resources:

I’ve did some research, and it sems like it’s been suggested before, but from what I’ve found it’s not been done yet.

We don’t offer an API. Using xcaddy is the right way.