From 1def93f75674347cf598b766c9f2ad7cbc78897a Mon Sep 17 00:00:00 2001 From: Hannu Teulahti Date: Sat, 6 Feb 2021 13:00:11 +0200 Subject: [PATCH] Fix Ubuntu Focal install Overwrite Ubuntu Focal repo with Debian Buster mimicking the zerotiers own installer --- tasks/install/Debian.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tasks/install/Debian.yml b/tasks/install/Debian.yml index 1a236db..25c1d47 100644 --- a/tasks/install/Debian.yml +++ b/tasks/install/Debian.yml @@ -24,6 +24,19 @@ - ansible_facts['distribution_major_version'] == "18" - release_repo.status == 404 +- block: + - name: Overwrite Ubuntu Focal release repo name + set_fact: + zerotier_deb_release_repo: buster + + - name: Re-gather facts + setup: ~ + + when: + - ansible_facts['distribution'] == "Ubuntu" + - ansible_facts['distribution_release'] == "focal" + - release_repo.status == 404 + - name: Add ZeroTier APT repository apt_repository: repo: deb {{ zerotier_download_base_url }}/debian/{{ zerotier_deb_release_repo }} {{ zerotier_deb_release_repo }} main