From 843c4e7eb4e149d47e961a8c8298fce6353f82da Mon Sep 17 00:00:00 2001 From: Tommaso Piccioli Date: Thu, 25 Mar 2021 11:20:58 +0100 Subject: [PATCH] Create thredds subdir if not there before initialization --- tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 5c24f43..db67be7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,6 +17,10 @@ file: path={{ thredds_data_content_dir }} state=directory owner={{ item.user }} group={{ item.user }} with_items: '{{ tomcat_m_instances }}' + - name: Create the Thredds data configuration subdir + file: path={{ thredds_data_content_dir }}/thredds state=directory owner={{ item.user }} group={{ common_users_group }} + with_items: '{{ tomcat_m_instances }}' + - name: Check if the configuration files were already initialized with our versions stat: path={{ thredds_data_content_dir }}/thredds/.conf_initialized register: thredds_skip_conf -- 2.17.1