diff --git a/roles/mariadb/tasks/main.yml b/roles/mariadb/tasks/main.yml index 468a298..d07405b 100644 --- a/roles/mariadb/tasks/main.yml +++ b/roles/mariadb/tasks/main.yml @@ -3,6 +3,13 @@ apt_key: id=0xcbcb082a1bb943db url=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xcbcb082a1bb943db tags: mariadb +- name: Remove old repo file + file: path={{ item }} state=absent + with_items: + - /etc/apt/sources.list.d/sgp1_mirrors_digitalocean_com_mariadb_repo_10_1_debian.list + - /etc/apt/sources.list.d/sgp1_mirrors_digitalocean_com_mariadb_repo_10_1_ubuntu.list + tags: mariadb + - name: Add MariaDB 10.1 repo template: src=mariadb.list.j2 dest=/etc/apt/sources.list.d/mariadb.list owner=root group=root mode=0644 tags: mariadb