From cc8d3896a7277baf5d0b830bcbecd38ffef79deb Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Mon, 4 Jan 2016 17:10:19 -0800
Subject: [PATCH] openqa: use 'shell' not 'command' for a step that needs it

this step uses && and >, needs a shell.
---
 roles/openqa/server/tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml
index 41fb2a0024..d8901626a1 100644
--- a/roles/openqa/server/tasks/main.yml
+++ b/roles/openqa/server/tasks/main.yml
@@ -195,7 +195,7 @@
   changed_when: "1 != 1"
 
 - name: Check if the tests changed in previous step
-  command: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-new.json && json_diff /tmp/tmpl-old.json /tmp/tmpl-new.json"
+  shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-new.json && json_diff /tmp/tmpl-old.json /tmp/tmpl-new.json"
   when: "gittests|changed"
   register: testsdiff
   changed_when: "testsdiff.rc > 0"