All, I’ve been using Argo Tunnel (cloudflared) for quite a while now in production. I’m attempting to migrate our deployments to Ansible, but have run into one difficulty. There are some fragments on galaxy.ansible.com for installing cloudflared for the purpose of DoH. This is really handy, but doesn’t require --login.
Does anyone have an Ansible role they could share for installing cloudflared and doing the --login portion? I’d much prefer the daemon download the certs itself rather than developers pushing files around.
Obviously, I’m pretty new to Ansible, but this seems to be a pretty difficult task as it’s whole purpose is automated install.
[FEAT REQ]: if --login could accept username and password on the CLI, then I could use a variable that’s properly secured and that would also solve the problem.
I haven’t used Ansible but asked one of our devs with the Cloudflare API key and Origin CA key, the certificate can be generated like this… 10 minutes of trying to format a script in this editor later… uh… here’s a link: