forked from ISTI-ansible-roles/ansible-roles
library/roles/orientdb: Use wildcards to remove the old hooks. Remove the old hook files before installing the new ones.
This commit is contained in:
parent
ddafc96e47
commit
cb3004120a
|
@ -29,7 +29,7 @@ orientdb_hooks_classes:
|
|||
#orientdb_hooks_jars:
|
||||
# - 'http://maven.research-infrastructures.eu/nexus/service/local/artifact/maven/redirect?r=gcube-snapshots&g=org.gcube.information-system&a=resource-registry-orientdb-hooks&v=1.0.1-SNAPSHOT&e=jar&c=jar-with-dependencies'
|
||||
#orientdb_hooks_to_be_removed:
|
||||
# - hook.jar
|
||||
# - hook*.jar
|
||||
|
||||
orientdb_binary_protocol_lower_port: 2424
|
||||
orientdb_binary_protocol_higher_port: 2430
|
||||
|
|
|
@ -32,15 +32,15 @@
|
|||
- '{{ orientdb_data_dir }}'
|
||||
- '{{ orientdb_pid_dir }}'
|
||||
|
||||
- name: Remove the old hook jars
|
||||
shell: rm {{ orientdb_install_dir }}/lib/{{ item }}
|
||||
with_items: '{{ orientdb_hooks_to_be_removed | default([]) }}'
|
||||
|
||||
- name: Fetch and install the hook jars
|
||||
get_url: url='{{ item }}' dest={{ orientdb_install_dir }}/lib
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue