From 31fa85042cccb60f88662f9e9d825d2c25d54743 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 26 Oct 2016 18:48:44 +0200 Subject: [PATCH] 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. --- orientdb/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/orientdb/tasks/main.yml b/orientdb/tasks/main.yml index 2edec3a..283750e 100644 --- a/orientdb/tasks/main.yml +++ b/orientdb/tasks/main.yml @@ -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