2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- name: tomcat restart instances with changed configs
|
|
|
|
service: name=tomcat-instance-'{{ item.item.http_port }}' state=restarted sleep=20
|
|
|
|
with_items: restart_needed.results
|
|
|
|
when: item.changed
|
2015-10-01 17:56:38 +02:00
|
|
|
ignore_errors: True
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: tomcat restart instances with changed jmx config
|
|
|
|
service: name=tomcat-instance-'{{ item.item.http_port }}' state=restarted sleep=20
|
|
|
|
with_items: jmx_restart_needed.results
|
|
|
|
when: item.changed
|
2015-10-01 17:56:38 +02:00
|
|
|
ignore_errors: True
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: tomcat instances restart
|
|
|
|
service: name=tomcat-instance-'{{ item.http_port }}' state=restarted sleep=20
|
|
|
|
with_items: tomcat_m_instances
|
2015-10-01 17:56:38 +02:00
|
|
|
ignore_errors: True
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: enable tomcat instances
|
2016-03-01 14:13:18 +01:00
|
|
|
service: name=tomcat-instance-'{{ item.http_port }}' state=started enabled=yes sleep=20
|
2015-05-28 11:32:57 +02:00
|
|
|
with_items: tomcat_m_instances
|
2015-10-01 17:56:38 +02:00
|
|
|
ignore_errors: True
|
2015-05-28 11:32:57 +02:00
|
|
|
|
|
|
|
- name: disable tomcat instances
|
2016-03-01 14:13:18 +01:00
|
|
|
service: name=tomcat-instance-'{{ item.http_port }}' state=stopped enabled=no sleep=20
|
2015-05-28 11:32:57 +02:00
|
|
|
with_items: tomcat_m_instances
|
2015-10-01 17:56:38 +02:00
|
|
|
ignore_errors: True
|
2015-05-28 11:32:57 +02:00
|
|
|
|