From 290d9f05a6e25077140521d98b49f043bbbdac6a Mon Sep 17 00:00:00 2001 From: curantes Date: Wed, 4 May 2016 10:22:23 +0200 Subject: [PATCH] remove requirement of redhat-lsb-core I would suggest to use {{ ansible_distribution_major_version }} instead of the {{ ansible_lsb.major_version }} since that will require the package redhat-lsb-core installed which is not always installed. You will get the same result if you use the other way without the requirement of redhat-lsb-core package. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index ee2aa4f..627d917 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,7 +5,7 @@ when: ansible_os_family != "RedHat" - name: Include OS-specific variables (RedHat). - include_vars: "{{ ansible_os_family }}-{{ ansible_lsb.major_release }}.yml" + include_vars: "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml" when: ansible_os_family == "RedHat" - name: Define mysql_packages.