m4rcu5nl / ansible-role-zerotier

Ansible role to install Zerotier-One and join a Zerotier network
GNU General Public License v3.0
77 stars 50 forks source link

Installation fails on an Ubuntu Cosmic system #26

Closed snesbittsea closed 5 years ago

snesbittsea commented 5 years ago

On a Cosmic Cuttlefish system, role will fail when trying to install the deb package from ZerotierOne.

The core problem is the "Add ZerotTier APT repository" task which generates the repository string based on the ansible_distribution_release variable. Zerotier does not provide a repository for cosmic. (I'm guessing Zerotier will only provide repos for LTS releases),

I worked around the issue by adding a new variable - zerotier_apt_repo - which then permits one to override the generated value.

I'd be happy to submit my changes - including doc updates - as a patch or pull request if this solution is acceptable.

m4rcu5nl commented 5 years ago

Thanks! Good catch. Weird though, since ZeroTier has provided non-LTS release repos in the past.

I like your workaround and tried expanding on it a little to eliminate the need to manually override the variable. Could you take a look at commit fd68894 in the develop branch and let me know if that would work for you?

snesbittsea commented 5 years ago

Thanks - that will work!

colbin8r commented 3 years ago

@m4rcu5nl I think this is an issue again on Ubuntu 20.04.1 LTS. I get a similar error:

TASK [m4rcu5nl.zerotier-one : Overwrite Ubuntu release repo name] **************************************************************************************************************************************************************************
skipping: [...]

TASK [m4rcu5nl.zerotier-one : Re-gather facts] *********************************************************************************************************************************************************************************************
skipping: [...]

TASK [m4rcu5nl.zerotier-one : Add ZeroTier APT repository] *********************************************************************************************************************************************************************************
fatal: [...]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'http://download.zerotier.com/debian/focal focal Release' does not have a Release file."}
snesbittsea commented 3 years ago

Hi Colby:

Zerotier doesn't have a focal repository. I've been using the bionic repo on focal and gorilla.

-steve

---- On Fri, 20 Nov 2020 11:38:48 -0800 Colby Rogness notifications@github.com wrote ----

https://github.com/m4rcu5nl I think this is an issue again on Ubuntu 20.04.1 LTS. I get a similar error:

TASK [m4rcu5nl.zerotier-one : Overwrite Ubuntu release repo name] ** skipping: [...]

TASK [m4rcu5nl.zerotier-one : Re-gather facts] ***** skipping: [...]

TASK [m4rcu5nl.zerotier-one : Add ZeroTier APT repository] ***** fatal: [...]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'http://download.zerotier.com/debian/focal focal Release' does not have a Release file."}

— You are receiving this because you modified the open/close state. Reply to this email directly, https://github.com/m4rcu5nl/ansible-role-zerotier/issues/26#issuecomment-731369248, or https://github.com/notifications/unsubscribe-auth/ADKGZRTZTKBS2N5566W2I6LSQ3AURANCNFSM4GIMNHXQ.