2015-05-28 11:32:57 +02:00
|
|
|
---
|
|
|
|
- name: tomcat restart instances with changed configs
|
2016-03-02 15:19:25 +01:00
|
|
|
service: name='tomcat-instance-{{ item.item.http_port }}' state=restarted sleep=20
|
2016-03-02 16:44:43 +01:00
|
|
|
with_items: '{{ restart_needed.results }}'
|
2015-05-28 11:32:57 +02:00
|
|
|
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
|
2016-03-02 15:19:25 +01:00
|
|
|
service: name='tomcat-instance-{{ item.item.http_port }}' state=restarted sleep=20
|
2016-03-02 16:44:43 +01:00
|
|
|
with_items: '{{ jmx_restart_needed.results }}'
|
2015-05-28 11:32:57 +02:00
|
|
|
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
|
2016-03-02 15:19:25 +01:00
|
|
|
service: name='tomcat-instance-{{ item.http_port }}' state=restarted sleep=20
|
2016-03-02 16:44:43 +01: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: enable tomcat instances
|
2016-03-02 15:19:25 +01:00
|
|
|
service: name='tomcat-instance-{{ item.http_port }}' state=started enabled=yes sleep=20
|
2016-03-02 16:44:43 +01: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-02 15:19:25 +01:00
|
|
|
service: name='tomcat-instance-{{ item.http_port }}' state=stopped enabled=no sleep=20
|
2016-03-02 16:44:43 +01: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
|
|
|
|