Create thredds subdir if not there before initialization

This commit is contained in:
Tommaso Piccioli 2021-03-25 11:20:58 +01:00
parent e2493de2b8
commit 843c4e7eb4
1 changed files with 4 additions and 0 deletions

View File

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