2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- name: tomcat restart
|
2016-03-02 15:19:25 +01:00
|
|
|
service: name='tomcat{{ tomcat_version }}' state=restarted sleep=20
|
2015-05-28 11:32:57 +02:00
|
|
|
when: tomcat_service_enabled
|
|
|
|
|
|
|
|
- name: enable tomcat
|
2016-03-02 15:19:25 +01:00
|
|
|
service: name='tomcat{{ tomcat_version }}' state=started enabled=yes
|
2015-05-28 11:32:57 +02:00
|
|
|
when: tomcat_service_enabled
|
|
|
|
|
|
|
|
- name: disable tomcat
|
2016-03-02 15:19:25 +01:00
|
|
|
service: name='tomcat{{ tomcat_version }}' state=started enabled=no
|
2015-05-28 11:32:57 +02:00
|
|
|
when: not tomcat_service_enabled
|