Initial commit of MariaDB role

Change-Id: I8d35374da716712ecf0ab1f748c952cbc2635969
diff --git a/tasks/Debian.yml b/tasks/Debian.yml
new file mode 100644
index 0000000..935bdb6
--- /dev/null
+++ b/tasks/Debian.yml
@@ -0,0 +1,28 @@
+---
+# mariadb tasks/Debian.yml
+#
+# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+# SPDX-License-Identifier: Apache-2.0
+
+
+- name: Add MariaDB apt repo GPG key
+  apt_key:
+    data: "{{ lookup('file','mariadb.gpg') }}"
+    state: "present"
+
+- name: Add MariaDB apt repo
+  apt_repository:
+    repo: >-
+      deb [arch=amd64,arm64,ppc64el]
+      {{ mariadb_apt_mirror }}/repo/{{ mariadb_version }}/{{ ansible_lsb['id'] | lower }}
+      {{ ansible_lsb['codename'] }} main
+    update_cache: true
+
+- name: Install MariaDB packages
+  apt:
+    name: "{{ mariadb_packages }}"
+    state: "present"
+    update_cache: true
+    cache_valid_time: 3600
+  notify:
+    - start-mariadb