From d48d521ce0ef88bed8021f26a0dccda9f7e76529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 25 Aug 2017 10:28:06 +0200 Subject: [PATCH] do not use ansible_lsb variables since they might not be available everywhere --- common/verify-local-requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/verify-local-requirements.yml b/common/verify-local-requirements.yml index a28bf68..0bb93d7 100644 --- a/common/verify-local-requirements.yml +++ b/common/verify-local-requirements.yml @@ -23,7 +23,7 @@ - set_fact: jmespath_missing: '{{ check_jmespath|failed }}' jinja28_missing: '{{ check_jinja28|failed }}' - on_rhel7: '{{ ansible_distribution == ''RedHat'' and ansible_lsb.major_release|int == 7 }}' + on_rhel7: '{{ ansible_distribution == ''RedHat'' and ansible_distribution_major_version|int == 7 }}' - debug: msg: "jmespath is not installed on the machine that runs the playbooks"