Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails on an Ubuntu Cosmic system #26

Closed
snesbittsea opened this issue Dec 5, 2018 · 4 comments
Closed

Installation fails on an Ubuntu Cosmic system #26

snesbittsea opened this issue Dec 5, 2018 · 4 comments
Assignees

Comments

@snesbittsea
Copy link

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 m4rcu5nl self-assigned this Dec 5, 2018
m4rcu5nl added a commit that referenced this issue Dec 6, 2018
If ansible_distribution is Ubuntu the role will check if there is a dedicated repo matching the ansible_distribution_release. If this is not the case but the ansible_distribution_major_version is 18, the repo for the bionic release will be used.
@m4rcu5nl
Copy link
Owner

m4rcu5nl commented Dec 6, 2018

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
Copy link
Author

Thanks - that will work!

@colbin8r
Copy link

@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
Copy link
Author

snesbittsea commented Nov 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants