forked from ISTI-ansible-roles/ansible-roles
13 lines
382 B
YAML
13 lines
382 B
YAML
|
---
|
||
|
- name: tomcat restart
|
||
|
service: name=tomcat'{{ tomcat_version }}' state=restarted sleep=20
|
||
|
when: tomcat_service_enabled
|
||
|
|
||
|
- name: enable tomcat
|
||
|
service: name=tomcat'{{ tomcat_version }}' state=started enabled=yes
|
||
|
when: tomcat_service_enabled
|
||
|
|
||
|
- name: disable tomcat
|
||
|
service: name=tomcat'{{ tomcat_version }}' state=started enabled=no
|
||
|
when: not tomcat_service_enabled
|