Merge "Remove percona repo if not used"

This commit is contained in:
Jenkins 2017-01-06 21:32:53 +00:00 committed by Gerrit Code Review
commit 2271abc26e
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,9 @@
---
fixes:
- The percona repository stayed in placed even after
a change of the variable ``use_percona_upstream``.
From now on, the percona repository will not be
present unless the deployer decides to
``use_percona_upstream``. This also fixes a bug
of the presence of this apt repository after an
upgdrade from Mitaka.

View File

@ -86,12 +86,11 @@
apt_repository:
repo: "{{ galera_percona_xtrabackup_repo.repo }}"
filename: "{{ galera_percona_xtrabackup_repo.filename }}"
state: "{{ galera_percona_xtrabackup_repo.state }}"
state: "{{ use_percona_upstream | bool | ternary('present','absent') }}"
register: add_repos
until: add_repos|success
retries: 5
delay: 2
when: use_percona_upstream | bool
tags:
- percona-repos