diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 3ed9c893c4..f5f2de4833 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -165,6 +165,11 @@ def is_changed(result): def check_conditional(conditional, basedir, inject, fail_on_undefined=False, jinja2=False): + if isinstance(conditional, list): + for x in conditional: + if not check_conditional(x, basedir, inject, fail_on_undefined=fail_on_undefined, jinja2=jinja2): + return False + return True if jinja2: conditional = "jinja2_compare %s" % conditional