2015-07-12 16:50:23 +07:00
|
|
|
---
|
|
|
|
|
2017-07-03 20:24:01 +07:00
|
|
|
- name: APT_KEY | Install MariaDB key
|
2018-03-18 00:28:56 +07:00
|
|
|
apt_key:
|
|
|
|
keyserver: "{{ mariadb_key_server }}"
|
|
|
|
id: "{{ item }}"
|
2019-04-12 14:38:42 +07:00
|
|
|
loop: "{{ mariadb_key_ids }}"
|
2015-07-12 16:50:23 +07:00
|
|
|
|
2017-07-03 20:24:01 +07:00
|
|
|
- name: TEMPLATE | Deploy APT pinning (prevent upgrades from Debian)
|
2018-03-18 00:28:56 +07:00
|
|
|
template:
|
|
|
|
src: etc/apt/preferences.d/95-mariadb.j2
|
|
|
|
dest: /etc/apt/preferences.d/95-mariadb
|
2017-07-03 20:24:01 +07:00
|
|
|
|
|
|
|
- name: APT_REPOSITORY | Add MariaDB repository
|
2018-03-18 00:28:56 +07:00
|
|
|
apt_repository:
|
|
|
|
repo: 'deb {{ mariadb_repository }} {{ ansible_distribution_release }} main'
|
2015-07-12 16:50:23 +07:00
|
|
|
|
2017-07-03 20:24:01 +07:00
|
|
|
- name: APT_REPOSITORY | Add MariaDB (src) repository
|
2018-03-18 00:28:56 +07:00
|
|
|
apt_repository:
|
|
|
|
repo: 'deb-src {{ mariadb_repository }} {{ ansible_distribution_release }} main'
|
2018-03-17 23:28:54 +07:00
|
|
|
when: mariadb_upstream_apt_src
|