From 605738757d3abfc02ecf3755b43be3c94d5aee97 Mon Sep 17 00:00:00 2001
From: Chris Mildebrandt <chris@octarinesec.com>
Date: Wed, 7 Mar 2018 11:32:47 -0800
Subject: [PATCH] Fix systemd version detection

Change "command" to "shell" in order for the pipe to work correctly
---
 roles/docker/tasks/systemd.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/docker/tasks/systemd.yml b/roles/docker/tasks/systemd.yml
index 877de1299..78cec33cc 100644
--- a/roles/docker/tasks/systemd.yml
+++ b/roles/docker/tasks/systemd.yml
@@ -12,7 +12,7 @@
   when: http_proxy is defined or https_proxy is defined
 
 - name: get systemd version
-  command: systemctl --version | head -n 1 | cut -d " " -f 2
+  shell: systemctl --version | head -n 1 | cut -d " " -f 2
   register: systemd_version
   when: not is_atomic
   changed_when: false
-- 
GitLab