From 9c294b4dd7cff70f8cf9cc05a488b7ffec9f68e5 Mon Sep 17 00:00:00 2001 From: Dick Davies Date: Mon, 10 Mar 2014 10:54:43 +0000 Subject: [PATCH] don't bounce tomcat unless needed found this playbook (it's fab) but it's bouncing tomcat after every run whether or not something has changed in the config. --- tomcat-standalone/roles/tomcat/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomcat-standalone/roles/tomcat/tasks/main.yml b/tomcat-standalone/roles/tomcat/tasks/main.yml index 7dd329c..784ce8b 100644 --- a/tomcat-standalone/roles/tomcat/tasks/main.yml +++ b/tomcat-standalone/roles/tomcat/tasks/main.yml @@ -37,7 +37,7 @@ copy: src=tomcat-initscript.sh dest=/etc/init.d/tomcat mode=0755 - name: Start Tomcat - service: name=tomcat state=restarted enabled=yes + service: name=tomcat state=started enabled=yes - name: deploy iptables rules template: src=iptables-save dest=/etc/sysconfig/iptables