--- - name: Install the solr schema used by CKAN file: src=/usr/lib/ckan/default/src/ckan/ckan/config/solr/schema.xml dest={{ solr_collections_base_dir }}/{{ item }}/conf/schema.xml state=link force=yes with_items: '{{ solr_cores }}' when: not ckan_geonetwork_harvester and solr_version is version_compare('9.0.0', '<=') notify: Solr Restart tags: [ 'ckan', 'solr', 'solr_schema', 'solr_core' ] - name: Install the solr schema used by CKAN, modified with the spatial fields copy: src=schema.xml dest={{ solr_collections_base_dir }}/{{ item }}/conf/schema.xml force=yes with_items: '{{ solr_cores }}' when: ckan_geonetwork_harvester and solr_version is version_compare('9.0.0', '<=') notify: Solr Restart tags: [ 'ckan', 'solr', 'solr_schema', 'solr_core' ] - name: copy jts-core library shell: cd {{ solr_server_dir }}; cp -u {{ item }} {{ solr_data_dir }}/lib with_items: '{{ solr_jar_files }}' notify: Solr restart when: solr_version is version_compare('9.7.0', '>=') tags: [ 'solr', 'solr_default', 'solr_conf', 'solr_jts'] - name: copy managed schema file ansible.builtin.copy: src: manage-schema.j2 dest: "{{ solr_data_dir }}/ckan/conf/managed-schema" mode: 0644 owner: "root" group: "root" notify: Solr restart tags: [ 'solr', 'solr_default', 'solr_schema', 'solr_jts' ] when: solr_version is version_compare('9.7.0', '>=')