mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-03-14 11:42:09 +07:00
Add variables for apt key-server and -ids
This commit is contained in:
@@ -126,6 +126,8 @@ mysql_users: []
|
||||
mysql_mariadb_version: '10.1'
|
||||
# See: https://downloads.mariadb.org/mariadb/repositories
|
||||
mysql_mariadb_repository: "http://ftp.igh.cnrs.fr/pub/mariadb/repo/{{ mysql_mariadb_version }}/debian"
|
||||
mysql_mariadb_key_server: "keyserver.ubuntu.com"
|
||||
mysql_mariadb_key_ids: ['0xcbcb082a1bb943db', '0xf1656f24c74cd1d8']
|
||||
|
||||
# -------------------------------------
|
||||
# Percona
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
|
||||
- name: APT | Install MariaDB key
|
||||
apt_key: keyserver="keyserver.ubuntu.com" id={{ item }} state=present
|
||||
with_items: ['0xcbcb082a1bb943db', '0xf1656f24c74cd1d8']
|
||||
apt_key: keyserver="{{ mysql_mariadb_key_server }}" id={{ item }} state=present
|
||||
with_items: "{{ mysql_mariadb_key_ids }}"
|
||||
|
||||
- name: APT | Add MariaDB repository
|
||||
apt_repository: repo='deb {{ mysql_mariadb_repository }} {{ ansible_distribution_release }} main' state=present
|
||||
|
||||
Reference in New Issue
Block a user