2020-05-28 15:21:37 +02:00
|
|
|
---
|
2022-07-18 18:41:12 +02:00
|
|
|
- name: tomcat multiple-instances restart
|
|
|
|
service:
|
|
|
|
name: 'tomcat-instance-{{ item.http_port }}'
|
|
|
|
state: restarted
|
|
|
|
sleep: 20
|
|
|
|
loop: '{{ tomcat_m_instances }}'
|
|
|
|
ignore_errors: true
|
2020-06-01 19:00:45 +02:00
|
|
|
|
|
|
|
- name: disable tomcat instances
|
|
|
|
service: name='tomcat-instance-{{ item.http_port }}' state=stopped enabled=no sleep=20
|
2022-07-18 18:41:12 +02:00
|
|
|
loop: '{{ tomcat_m_instances }}'
|
|
|
|
ignore_errors: true
|