ansible-role-tomcat-multipl.../handlers/main.yml

14 lines
378 B
YAML

---
- name: tomcat multiple-instances restart
service:
name: 'tomcat-instance-{{ item.http_port }}'
state: restarted
sleep: 20
loop: '{{ tomcat_m_instances }}'
ignore_errors: true
- name: disable tomcat instances
service: name='tomcat-instance-{{ item.http_port }}' state=stopped enabled=no sleep=20
loop: '{{ tomcat_m_instances }}'
ignore_errors: true