Use version_compare to test for Ubuntu 18.04 "bionic"
It just feels more correct, plus I usually forget the release code name from time to time.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
{% if ansible_distribution_release == 'bionic' %}
|
||||
{% if ansible_distribution_version | version_compare('18.04', '==') %}
|
||||
# 2018-03-17: no Ubuntu 18.04 "bionic" packages yet, so use 17.10 "artful"
|
||||
deb https://pkg.tarsnap.com/deb/artful ./
|
||||
{% else %}
|
||||
|
Reference in New Issue
Block a user