diff --git a/tasks/main.yml b/tasks/main.yml index fc87b8d..2f8b20e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -32,6 +32,13 @@ register: tomcat_first_install tags: [ 'tomcat', 'tomcat_instances' ] +- name: Create the tomcat logs base directory + file: + dest: '{{ tomcat_m_instances_logdir_base }}' + state: directory + mode: 0755 + tags: [ 'tomcat', 'tomcat_instances', 'tomcat_log_dir' ] + - name: Create the instances log dirs file: dest={{ tomcat_m_instances_logdir_base }}/{{ item.http_port }} owner={{ item.user }} group={{ item.user }} mode='0750' state=directory with_items: '{{ tomcat_m_instances }}'