Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FITS Dependency to disable Tika #2

Merged
merged 1 commit into from
Oct 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion external_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions external_roles/fits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand Down
1 change: 1 addition & 0 deletions external_roles/fits/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

fits_version: 1.0.2
fits_install: /opt
fits_disable_tika: true
2 changes: 1 addition & 1 deletion external_roles/fits/meta/.galaxy_install_info
Original file line number Diff line number Diff line change
@@ -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: ''}
9 changes: 9 additions & 0 deletions external_roles/fits/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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='<!-- \1 -->'
state=present
when: fits_disable_tika