From 042c6a7767c1d38e5df703924b0a62bae5a50172 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 15 Sep 2017 13:02:27 +0200 Subject: [PATCH] tomcat-multiple-instances: Create the tmp directory with the correct permissions and ownership. --- tomcat-multiple-instances/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tomcat-multiple-instances/tasks/main.yml b/tomcat-multiple-instances/tasks/main.yml index c49dec1b..114f785e 100644 --- a/tomcat-multiple-instances/tasks/main.yml +++ b/tomcat-multiple-instances/tasks/main.yml @@ -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' ]