tomcat-multiple-instances: Create the tmp directory with the correct permissions and ownership.

This commit is contained in:
Andrea Dell'Amico 2017-09-15 13:02:27 +02:00
parent 25eebdf57f
commit 042c6a7767
1 changed files with 2 additions and 2 deletions

View File

@ -56,8 +56,8 @@
register: tomcat_first_install
tags: [ 'tomcat', 'tomcat_instances' ]
- name: Create the tmp directory
file: dest={{ item.catalina_tmp_directory }} state=directory
- name: Create the catalina tmp directory
file: dest={{ item.catalina_tmp_directory }} state=directory owner={{ item.0.user }} group={{ item.0.user }} mode=0700
with_items: '{{ tomcat_m_instances }}'
when: item.catalina_tmp_directory is defined
tags: [ 'tomcat', 'tomcat_instances' ]