Fix MariaDB apt package pinning

The variables in vars are only loaded when the include_vars
task is run, which is after meta-dependencies are processed.

This patch ensures that the pinning is properly applied when
the meta-dependent role is executed.

Closes-Bug: #1712315
Change-Id: Ib99afee1a3bf9fba8d34c63ffa28e5fa41b73d03
This commit is contained in:
Jesse Pretorius 2017-08-23 08:05:38 +01:00
parent 81be9ab802
commit 1faa81c5a1
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,9 @@ galera_client_repo: "{{ _galera_client_repo }}"
# Set the gpg keys needed to be imported
galera_client_gpg_keys: "{{ _galera_client_gpg_keys | default([]) }}"
# This is only applied if the ansible_pkg_mgr is 'apt'
galera_server_distro_package_pins: [{ package: "*", release: MariaDB, priority: "1001" }]
## APT Cache Options
cache_timeout: 600

View File

@ -41,4 +41,3 @@ _galera_client_gpg_keys:
fallback_keyserver: 'hkp://p80.pool.sks-keyservers.net:80'
hash_id: '0xF1656F24C74CD1D8'
galera_client_package_pins: [{ package: "*", release: MariaDB, priority: "1001" }]