summaryrefslogtreecommitdiff
path: root/tomcat-ctl.yaml
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-12-13 18:54:21 -0700
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2017-12-13 18:54:21 -0700
commit32086f62131e1b813e2f3d97bc2c78f66c6a3154 (patch)
tree2005059011aea64121af64de5b3567fd0dcbca3b /tomcat-ctl.yaml
parent21fa10807bb475bff42a997ac4add3cc7e6346f9 (diff)
adding files
Diffstat (limited to 'tomcat-ctl.yaml')
-rw-r--r--tomcat-ctl.yaml10
1 files changed, 10 insertions, 0 deletions
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