diff --git a/external_roles.yml b/external_roles.yml index cf3e6d56fd..e1ea38af7c 100644 --- a/external_roles.yml +++ b/external_roles.yml @@ -10,7 +10,7 @@ - src: geerlingguy.redis path: redis name: redis -- src: ucsdlib.fits +- src: https://github.com/ucsdlib/ansible-role-fits path: fits name: fits - src: ansiblebit.oracle-java diff --git a/external_roles/fits/README.md b/external_roles/fits/README.md index 99d2eec7a7..27fdbc05fd 100644 --- a/external_roles/fits/README.md +++ b/external_roles/fits/README.md @@ -13,6 +13,7 @@ Role Variables * `fits_version`: Version to install * `fits_install`: Location to install +* `fits_disable_tika`: (boolean) Disable Apache Tika Toolkit Dependencies ------------ diff --git a/external_roles/fits/defaults/main.yml b/external_roles/fits/defaults/main.yml index e049ef0fff..b8f7573d90 100644 --- a/external_roles/fits/defaults/main.yml +++ b/external_roles/fits/defaults/main.yml @@ -3,3 +3,4 @@ fits_version: 1.0.2 fits_install: /opt +fits_disable_tika: true diff --git a/external_roles/fits/meta/.galaxy_install_info b/external_roles/fits/meta/.galaxy_install_info index b3cd73d7ce..203d8f1da7 100644 --- a/external_roles/fits/meta/.galaxy_install_info +++ b/external_roles/fits/meta/.galaxy_install_info @@ -1 +1 @@ -{install_date: 'Mon Oct 10 19:40:20 2016', version: 1.0.0} +{install_date: 'Thu Oct 20 18:02:17 2016', version: ''} diff --git a/external_roles/fits/tasks/main.yml b/external_roles/fits/tasks/main.yml index 77e6bc224e..43fc5a4bc2 100644 --- a/external_roles/fits/tasks/main.yml +++ b/external_roles/fits/tasks/main.yml @@ -24,3 +24,12 @@ state: link become: true ignore_errors: '{{ ansible_check_mode }}' + +- name: Disable Tika + lineinfile: + dest='{{ fits_install }}/fits-{{ fits_version }}/xml/fits.xml' + regexp='.*(<.*edu.harvard.hul.ois.fits.tools.tika.TikaTool.*>).*' + backrefs=yes + line='' + state=present + when: fits_disable_tika