summaryrefslogtreecommitdiff
path: root/tomcat-ctl.yaml
diff options
context:
space:
mode:
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