diff options
Diffstat (limited to 'salt/openbook/ansible/files/stop_start_openbook.yaml')
| -rw-r--r-- | salt/openbook/ansible/files/stop_start_openbook.yaml | 9 |
1 files changed, 7 insertions, 2 deletions
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" |
