From 4880222d819aa924a43a3e4fc778df5442a90657 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 7 Aug 2015 16:43:24 +0200 Subject: [PATCH] Percona xtrabackup installed --- tasks/install.yml | 15 +++++++++++++-- tasks/install_upstream_percona.yml | 13 ------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index c30f232..fb8d92c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -10,8 +10,18 @@ (mysql_origin == 'upstream' and mysql_vendor == 'percona') ) -- name: APT | Update cache - apt: update_cache=yes cache_valid_time=3600 +- name: APT_KEY | Install Percona key + apt_key: keyserver="keyserver.ubuntu.com" id="1C4CBDCDCD2EFD2A" state=present +#apt_key: keyserver="keys.gnupg.net" id="1C4CBDCDCD2EFD2A" state=present + +#- name: TEMPLATE | Deploy APT pinning (prevent upgrades from Debian) +# template: src=etc/apt/preferences.d/95-percona.j2 dest=/etc/apt/preferences.d/95-percona + +- name: APT_REPOSITORY | Add Percona repository + apt_repository: repo='deb {{ percona_repository }} {{ ansible_distribution_release }} main' state=present + +- name: APT_RESPOSITORY | Add Percona (src) repository + apt_repository: repo='deb-src {{ percona_repository }} {{ ansible_distribution_release }} main' state=present - name: INCLUDE | Install MySQL from default repo include: 'install_default_mysql.yml' @@ -35,4 +45,5 @@ - mytop - percona-toolkit - python-mysqldb + - percona-xtrabackup diff --git a/tasks/install_upstream_percona.yml b/tasks/install_upstream_percona.yml index d202734..1f8a3cf 100644 --- a/tasks/install_upstream_percona.yml +++ b/tasks/install_upstream_percona.yml @@ -1,18 +1,5 @@ --- -- name: APT_KEY | Install Percona key - apt_key: keyserver="keyserver.ubuntu.com" id="1C4CBDCDCD2EFD2A" state=present -#apt_key: keyserver="keys.gnupg.net" id="1C4CBDCDCD2EFD2A" state=present - -- name: TEMPLATE | Deploy APT pinning (prevent upgrades from Debian) - template: src=etc/apt/preferences.d/95-percona.j2 dest=/etc/apt/preferences.d/95-percona - -- name: APT_REPOSITORY | Add Percona repository - apt_repository: repo='deb {{ percona_repository }} {{ ansible_distribution_release }} main' state=present - -- name: APT_RESPOSITORY | Add Percona (src) repository - apt_repository: repo='deb-src {{ percona_repository }} {{ ansible_distribution_release }} main' state=present - - name: DEBCONF | Prepare MySQL silent installation (root password) debconf: name='percona-server-server-{{ percona_version }}' question='percona-server-server/root_password' vtype='password' value='{{ mysql_root_password }}' when: not mysql_exists.stat.exists