From 32086f62131e1b813e2f3d97bc2c78f66c6a3154 Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Wed, 13 Dec 2017 18:54:21 -0700 Subject: adding files --- tomcat-ctl.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tomcat-ctl.yaml (limited to 'tomcat-ctl.yaml') diff --git a/tomcat-ctl.yaml b/tomcat-ctl.yaml new file mode 100644 index 0000000..25f5159 --- /dev/null +++ b/tomcat-ctl.yaml @@ -0,0 +1,10 @@ +--- +- hosts: target + serial: 1 + 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." + when: action not in ["stop", "start", "restart"] + + - include: playbooks/tomcat-ctl.yaml -- cgit v1.3