Add variables for apt key-server and -ids

pull/18/head
Jasper N. Brouwer 2017-06-28 21:47:20 +02:00
parent 47be1b60a6
commit e38f706eb1
2 changed files with 4 additions and 2 deletions

View File

@ -126,6 +126,8 @@ mysql_users: []
mysql_mariadb_version: '10.1' mysql_mariadb_version: '10.1'
# See: https://downloads.mariadb.org/mariadb/repositories # See: https://downloads.mariadb.org/mariadb/repositories
mysql_mariadb_repository: "http://ftp.igh.cnrs.fr/pub/mariadb/repo/{{ mysql_mariadb_version }}/debian" 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 # Percona

View File

@ -1,8 +1,8 @@
--- ---
- name: APT | Install MariaDB key - name: APT | Install MariaDB key
apt_key: keyserver="keyserver.ubuntu.com" id={{ item }} state=present apt_key: keyserver="{{ mysql_mariadb_key_server }}" id={{ item }} state=present
with_items: ['0xcbcb082a1bb943db', '0xf1656f24c74cd1d8'] with_items: "{{ mysql_mariadb_key_ids }}"
- name: APT | Add MariaDB repository - name: APT | Add MariaDB repository
apt_repository: repo='deb {{ mysql_mariadb_repository }} {{ ansible_distribution_release }} main' state=present apt_repository: repo='deb {{ mysql_mariadb_repository }} {{ ansible_distribution_release }} main' state=present