From ee537413fba2533ab24f8e859ad304f351863f8e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 20 Sep 2021 12:56:39 +0200 Subject: [PATCH] Tomcat logs base directory: accessible to all. --- tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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 }}'