ansible-roles/tomcat-instance/tasks/main.yml
Jérémy Lecour 8920ff1ee4 Add "always_run: yes" where it's pertinent
There is also the "check_mode: no", but commented,
for when we switch to Ansible 2.2
2017-01-31 11:45:35 +01:00

17 lines
455 B
YAML

---
- stat:
path: "{{ tomcat_instance_root | mandatory }}/{{ tomcat_instance_name | mandatory }}"
#check_mode: no (for migration to Ansible 2.2)
always_run: yes
register: tomcat_instance_stat
- include: tomcat.yml
- include: nagios.yml
- include: check.yml
- include: user.yml
- include: systemd.yml
- include: alias.yml
when: tomcat_instance_stat.stat.exists != True
- include: bootstrap.yml
when: tomcat_instance_stat.stat.exists != True