papanito / ansible-role-cloudflared

This ansible role does download and install cloudflared on the host and optionally installs the argo-tunnel as a service.
Apache License 2.0
51 stars 13 forks source link

Error when installing using OS packaging system and Cloudflare package repository #58

Closed esolitos closed 2 years ago

esolitos commented 2 years ago

After submitting #57 I was trying to install using cf_os_package_enable: true, but this also appears to fail because CloudFlare restructured their packages repositories, I was able to install updating 2 variables, but I suggest to change the defaults so that everything works.

cf_repository_key_url: https://pkg.cloudflare.com/cloudflare-main.gpg
cf_repository: "deb https://pkg.cloudflare.com/cloudflared {{ ansible_distribution_release }} main"

Furthermore would be a good idea to include also the "signed-by" option to the APT repositories as suggested by CloudFlare documentation: [signed-by=/usr/share/keyrings/cloudflare-main.gpg]