From 419d0c7e9a94781840e21796296759b226c22eb0 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 15 Apr 2016 11:42:03 +0300 Subject: [PATCH] roles/mariadb: Remove old MariaDB sources.list --- roles/mariadb/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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