From 85721c5bb09028974a724a43849f7291bc5f719d Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Fri, 8 Dec 2017 07:29:43 -0700 Subject: debug support integrated into jenkins Issue: IS-44 --- salt/openbook/ansible/files/stop_start_openbook.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'salt/openbook/ansible/files/stop_start_openbook.yaml') diff --git a/salt/openbook/ansible/files/stop_start_openbook.yaml b/salt/openbook/ansible/files/stop_start_openbook.yaml index 376d1f5..c34a7ff 100644 --- a/salt/openbook/ansible/files/stop_start_openbook.yaml +++ b/salt/openbook/ansible/files/stop_start_openbook.yaml @@ -3,7 +3,8 @@ hosts: localhost tasks: - name: "Check that -e 'action=[stop|start|restart]' was passed in" - fail: msg="The variable 'action' was not passed in with a value of 'stop', 'start' or 'restart' on the command line." + fail: + msg: "The variable 'action' was not passed in with a value of 'stop', 'start' or 'restart' on the command line." when: action not in ["stop", "start", "restart"] - name: "Stop Openbook" @@ -25,4 +26,8 @@ tasks: - name: "Start Openbook" shell: /etc/init.d/openbook start - when: action in ["start", "restart"] + when: action in ["start", "restart"] and extra_args != "debug" + + - name: "Start Openbook in debug mode" + shell: /etc/init.d/openbook debug + when: action in ["start", "restart"] and extra_args == "debug" -- cgit v1.3