Zack Williams | 49e8860 | 2020-10-14 22:17:13 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # mariadb tasks/Debian.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | |
| 8 | - name: Add MariaDB apt repo GPG key |
| 9 | apt_key: |
| 10 | data: "{{ lookup('file','mariadb.gpg') }}" |
| 11 | state: "present" |
| 12 | |
| 13 | - name: Add MariaDB apt repo |
| 14 | apt_repository: |
| 15 | repo: >- |
| 16 | deb [arch=amd64,arm64,ppc64el] |
| 17 | {{ mariadb_apt_mirror }}/repo/{{ mariadb_version }}/{{ ansible_lsb['id'] | lower }} |
| 18 | {{ ansible_lsb['codename'] }} main |
| 19 | update_cache: true |
| 20 | |
| 21 | - name: Install MariaDB packages |
| 22 | apt: |
| 23 | name: "{{ mariadb_packages }}" |
| 24 | state: "present" |
| 25 | update_cache: true |
| 26 | cache_valid_time: 3600 |
| 27 | notify: |
| 28 | - start-mariadb |