blob: 935bdb64fd52bcdd8be9a2390abf58b64dc85bf7 [file] [log] [blame]
---
# 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