From 8d5df339ddfc7c59171b2e76c1da4b7760ef24e4 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Mon, 5 Jun 2017 14:57:10 -0700 Subject: [PATCH] Dynamically include upgrade_check task files Dynamically include the correct galera_upgrade_check task file based on the ansible_pkg_mgr variable. Change-Id: Icf7a2556fc303f8920a85873a6f44d4548b7f459 (cherry picked from commit bc963815ca252f55fed36f018d6c0eaffb49f01c) --- tasks/galera_upgrade_check.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tasks/galera_upgrade_check.yml b/tasks/galera_upgrade_check.yml index 2c51236c..193a0c3a 100644 --- a/tasks/galera_upgrade_check.yml +++ b/tasks/galera_upgrade_check.yml @@ -13,19 +13,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -- include: galera_upgrade_check_apt.yml - static: no - when: - - ansible_pkg_mgr == 'apt' - tags: - - install-apt - -- include: galera_upgrade_check_yum.yml - static: no - when: - - ansible_pkg_mgr == 'yum' +- include: "galera_upgrade_check_{{ ansible_pkg_mgr }}.yml" tags: - install-apt + - install-yum - include: galera_upgrade_pre.yml static: no