library/roles/orientdb/tasks/main.yml: Add a task to remove the old hook files.

d4science-ghn-cluster/group_vars/orientdb_dev/orientdb_dev.yml: Add a list of old hook files.
This commit is contained in:
Andrea Dell'Amico 2016-10-26 18:48:44 +02:00
parent c8463c62a9
commit 31fa85042c
1 changed files with 5 additions and 1 deletions

View File

@ -34,9 +34,13 @@
- name: Fetch and install the hook jars
get_url: url='{{ item }}' dest={{ orientdb_install_dir }}/lib
with_items: '{{ orientdb_hooks_jars | default ([]) }}'
with_items: '{{ orientdb_hooks_jars | default([]) }}'
notify: Restart orientdb
- name: Remove the old hook jars
file: dest={{ orientdb_install_dir }}/lib/{{ item }} state=absent
with_items: '{{ orientdb_hooks_to_be_removed | default([]) }}'
- name: Install the orientdb default settings
template: src=orientdb.default.j2 dest=/etc/default/orientdb owner=root group=root mode=0444
notify: Restart orientdb