From bc963815ca252f55fed36f018d6c0eaffb49f01c 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 --- tasks/galera_upgrade_check.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tasks/galera_upgrade_check.yml b/tasks/galera_upgrade_check.yml index 8ff8413b..e122ac4c 100644 --- a/tasks/galera_upgrade_check.yml +++ b/tasks/galera_upgrade_check.yml @@ -13,18 +13,9 @@ # 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' +- include: galera_upgrade_check_{{ ansible_pkg_mgr }}.yml tags: - install-apt - -- include: galera_upgrade_check_yum.yml - static: no - when: - - ansible_pkg_mgr == 'yum' - tags: - install-yum - include: galera_upgrade_pre.yml