Commit f3dc5707 by Michael DeHaan

Merge pull request #3282 from jlaska/devel

Reference ansible_lsb.major_release, not ansible_lsb.major_version
parents 6ba72854 eb2ae8b3
...@@ -310,7 +310,7 @@ Tip: Sometimes you'll get back a variable that's a string and you'll want to do ...@@ -310,7 +310,7 @@ Tip: Sometimes you'll get back a variable that's a string and you'll want to do
tasks: tasks:
- shell: echo "only on Red Hat 6, derivatives, and later" - 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. Variables defined in the playbooks or inventory can also be used.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment