geerlingguy / ansible-role-varnish

Ansible Role - Varnish HTTP accelerator
https://galaxy.ansible.com/geerlingguy/varnish/
MIT License
80 stars 88 forks source link

Ubuntu 22 Jammy; packagecloud does not have release file #114

Closed stockholmz closed 1 year ago

stockholmz commented 1 year ago

I'm receiving this error when using this role:

TASK [geerlingguy.varnish : Add packagecloud.io Varnish apt repository.] ************************************************************************************************************************************************************************************** fatal: [loadbalancer_node1]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'https://packagecloud.io/varnishcache/varnish66/ubuntu jammy Release' does not have a Release file."}

I've tried these settings to avoid using packagecloud, or just setting the correct version according to apt-cache policy varnish

varnish_apt_use_packagecloud: false varnish_version: "6.6"

What am I doing wrong here?

stockholmz commented 1 year ago

Solution: Find a version that has a jammy release. (Kind of what the message says). I ended up changing to varnish_version: "7.3" and it worked.

Sorry for the confusion.