diff --git a/thredds/tasks/main.yml b/thredds/tasks/main.yml index 51d91f4a..dfd6330b 100644 --- a/thredds/tasks/main.yml +++ b/thredds/tasks/main.yml @@ -23,10 +23,10 @@ tags: [ 'thredds', 'tomcat', 'thredds_conf' ] - name: Install the Thredds configuration files - template: src={{ item }}.j2 dest={{ thredds_data_content_dir }}/thredds/{{ item }} owner={{ item.user }} group={{ item.user }} mode=644 - with_items: - - threddsConfig.xml - - catalog.xml + template: src={{ item[1] }}.j2 dest={{ thredds_data_content_dir }}/thredds/{{ item[1] }} owner={{ item.0.user }} group={{ item.0.user }} mode=644 + with_nested: + - '{{ tomcat_m_instances }}' + - ['threddsConfig.xml','catalog.xml'] notify: tomcat instances restart when: not thredds_skip_conf.stat.exists tags: [ 'thredds', 'tomcat', 'thredds_conf' ]