2020-05-28 15:21:37 +02:00
|
|
|
---
|
2020-06-01 19:00:45 +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 is changed
|
|
|
|
ignore_errors: True
|
|
|
|
|
|
|
|
- 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 is changed
|
|
|
|
ignore_errors: True
|
|
|
|
|
|
|
|
- name: tomcat instances restart
|
|
|
|
service: name='tomcat-instance-{{ item.http_port }}' state=restarted sleep=20
|
|
|
|
with_items: '{{ tomcat_m_instances }}'
|
|
|
|
ignore_errors: True
|
|
|
|
|
|
|
|
- name: enable tomcat instances
|
|
|
|
service: name='tomcat-instance-{{ item.http_port }}' state=started enabled=yes sleep=20
|
|
|
|
with_items: '{{ tomcat_m_instances }}'
|
|
|
|
ignore_errors: True
|
|
|
|
|
|
|
|
- name: disable tomcat instances
|
|
|
|
service: name='tomcat-instance-{{ item.http_port }}' state=stopped enabled=no sleep=20
|
|
|
|
with_items: '{{ tomcat_m_instances }}'
|
|
|
|
ignore_errors: True
|
|
|
|
|