From 4ec0536168649af5389f7064460876e154e11fec Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sun, 1 Nov 2015 16:31:23 -0500 Subject: [PATCH] made condition not simplifiable to 'in' --- docsite/rst/playbooks_conditionals.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docsite/rst/playbooks_conditionals.rst b/docsite/rst/playbooks_conditionals.rst index ed818ee286..15d397c7ac 100644 --- a/docsite/rst/playbooks_conditionals.rst +++ b/docsite/rst/playbooks_conditionals.rst @@ -31,10 +31,10 @@ It's actually pretty simple:: You can also use parentheses to group conditions:: tasks: - - name: "shutdown CentOS 6 and 7 systems" + - name: "shutdown CentOS 6 and Debian 7 systems" command: /sbin/shutdown -t now - when: ansible_distribution == "CentOS" and - (ansible_distribution_major_version == "6" or ansible_distribution_major_version == "7") + when: (ansible_distribution == "CentOS" and ansible_distribution_major_version == "6") or + (ansible_distribution == "Debian" and ansible_distribution_major_version == "7") A number of Jinja2 "filters" can also be used in when statements, some of which are unique and provided by Ansible. Suppose we want to ignore the error of one statement and then