Alan Orth
35d0bee6cf
When you use the apt_repository module it adds a sources.list with an annoying filename, and also it's just easier to use a template when we have different distros/versions to support.
11 lines
417 B
Django/Jinja
11 lines
417 B
Django/Jinja
{% if ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04' %}
|
|
|
|
# there are no xenial builds yet, so use wily
|
|
deb [arch=amd64,i386] http://mariadb.mirror.serveriai.lt/repo/10.1/ubuntu wily main
|
|
|
|
{% elif ansible_distribution == 'Debian' %}
|
|
|
|
deb [arch=amd64,i386] http://mariadb.mirror.serveriai.lt/repo/10.1/debian {{ ansible_distribution_release }} main
|
|
|
|
{% endif %} {# ansible_distribution #}
|