Tomcat logs base directory: accessible to all.

This commit is contained in:
Andrea Dell'Amico 2021-09-20 12:56:39 +02:00
parent 7f2f3118e9
commit ee537413fb
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 7 additions and 0 deletions

View File

@ -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 }}'