roles/mariadb: Use a template for sources
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.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
tags: mariadb
|
||||
|
||||
- name: Add MariaDB 10.1 repo
|
||||
apt_repository: repo="deb http://sgp1.mirrors.digitalocean.com/mariadb/repo/10.1/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main" state=present
|
||||
template: src=mariadb.list.j2 dest=/etc/apt/sources.list.d/mariadb.list owner=root group=root mode=0644
|
||||
tags: mariadb
|
||||
|
||||
- name: Install mariadb-server
|
||||
|
Reference in New Issue
Block a user