Rearrange conditionals
release_repo.status needs to be checked after distribution.
This commit is contained in:
@@ -19,9 +19,9 @@
|
|||||||
setup: ~
|
setup: ~
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- release_repo.status == 404
|
|
||||||
- ansible_facts['distribution'] == "Ubuntu"
|
- ansible_facts['distribution'] == "Ubuntu"
|
||||||
- ansible_facts['distribution_major_version'] == "18"
|
- ansible_facts['distribution_major_version'] == "18"
|
||||||
|
- release_repo.status == 404
|
||||||
|
|
||||||
- name: Add ZeroTier APT repository
|
- name: Add ZeroTier APT repository
|
||||||
apt_repository:
|
apt_repository:
|
||||||
|
|||||||
Reference in New Issue
Block a user