From b59c93cc44bc9ff0e041ff24805880294117f745 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Mon, 26 Feb 2018 16:36:54 +0000 Subject: [PATCH] Actually generate pip freeze outputs the shell script used is actually being run thru 'sh', not bash, which does not understand "[[" test operators. Explicitly run this script with /bin/bash instead. Change-Id: I551d2631bcb6aef49550d69b3830ffcb509abfb7 --- roles/capture-system-logs/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/capture-system-logs/tasks/main.yaml b/roles/capture-system-logs/tasks/main.yaml index cd8f4f0eab..de4f8eda08 100644 --- a/roles/capture-system-logs/tasks/main.yaml +++ b/roles/capture-system-logs/tasks/main.yaml @@ -1,6 +1,7 @@ # TODO(andreaf) Make this into proper Ansible - name: Stage various logs and reports shell: + executable: /bin/bash cmd: | sudo iptables-save > {{ stage_dir }}/iptables.txt df -h > {{ stage_dir }}/df.txt