ansible-roles/tomcat-instance/tasks/main.yml

23 lines
453 B
YAML
Raw Normal View History

2017-01-03 12:41:19 +01:00
---
- stat:
path: "{{ tomcat_instance_root | mandatory }}/{{ tomcat_instance_name | mandatory }}"
#check_mode: no (for migration to Ansible 2.2)
always_run: yes
2017-01-03 12:41:19 +01:00
register: tomcat_instance_stat
- include: tomcat.yml
2017-01-31 11:47:29 +01:00
2017-01-04 16:00:58 +01:00
- include: nagios.yml
2017-01-31 11:47:29 +01:00
2017-01-03 12:41:19 +01:00
- include: check.yml
2017-01-31 11:47:29 +01:00
2017-01-03 12:41:19 +01:00
- include: user.yml
2017-01-31 11:47:29 +01:00
2017-01-03 12:41:19 +01:00
- include: systemd.yml
2017-01-31 11:47:29 +01:00
2017-01-03 12:41:19 +01:00
- include: alias.yml
2017-01-31 11:47:29 +01:00
when: not tomcat_instance_stat.stat.exists
2017-01-03 12:41:19 +01:00
- include: bootstrap.yml
2017-01-31 11:47:29 +01:00
when: not tomcat_instance_stat.stat.exists