From eb2ae8b3c2a786b669a1d2074dc685f67cd3dfc2 Mon Sep 17 00:00:00 2001 From: James Laska Date: Thu, 20 Jun 2013 08:23:49 -0400 Subject: [PATCH] Reference major_release, not major_version --- docsite/latest/rst/playbooks2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/latest/rst/playbooks2.rst b/docsite/latest/rst/playbooks2.rst index 6df919ce58..30fd4cc82c 100644 --- a/docsite/latest/rst/playbooks2.rst +++ b/docsite/latest/rst/playbooks2.rst @@ -310,7 +310,7 @@ Tip: Sometimes you'll get back a variable that's a string and you'll want to do tasks: - shell: echo "only on Red Hat 6, derivatives, and later" - when: ansible_os_family == "RedHat" and ansible_lsb.major_version|int >= 6 + when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int >= 6 Variables defined in the playbooks or inventory can also be used.