Use bionic repo on focal

pull/38/head
Cornelius Hoffmann 2020-11-13 20:57:29 +01:00
parent ca3cc077d6
commit a9d5f3ac96
No known key found for this signature in database
GPG Key ID: 8513ED4852F7B071
1 changed files with 9 additions and 2 deletions

View File

@ -12,16 +12,23 @@
register: release_repo register: release_repo
- block: - block:
- name: Overwrite Ubuntu release repo name - name: Overwrite Ubuntu release repo name for cosmic
set_fact: set_fact:
zerotier_deb_release_repo: bionic zerotier_deb_release_repo: bionic
when:
- ansible_facts['distribution_major_version'] == "18"
- name: Overwrite Ubuntu release repo name for focal
set_fact:
zerotier_deb_release_repo: bionic
when:
- ansible_facts['distribution_major_version'] == "20"
- name: Re-gather facts - name: Re-gather facts
setup: ~ setup: ~
when: when:
- ansible_facts['distribution'] == "Ubuntu" - ansible_facts['distribution'] == "Ubuntu"
- ansible_facts['distribution_major_version'] == "18"
- release_repo.status == 404 - release_repo.status == 404
- name: Add ZeroTier APT repository - name: Add ZeroTier APT repository