forked from ISTI-ansible-roles/ansible-roles
library/roles/orientdb: delay the start after the stop in the letsencrypt hook. See https://support.d4science.org/issues/8992
This commit is contained in:
parent
d3154f5d95
commit
334103a150
|
@ -77,7 +77,7 @@
|
|||
- name: Install a letsencrypt hook to update the orientdb certificate
|
||||
template: src=orientdb-letsencrypt-acme.sh.j2 dest={{ letsencrypt_acme_services_scripts_dir }}/orientdb owner=root group=root mode=4555
|
||||
|
||||
tags: [ 'orientdb', 'letsencrypt' ]
|
||||
tags: [ 'orientdb', 'letsencrypt', 'orientdb_letsencrypt' ]
|
||||
when:
|
||||
- orientdb_install
|
||||
- orientdb_letsencrypt_ssl_enabled
|
||||
|
|
|
@ -26,8 +26,11 @@ fi
|
|||
|
||||
chmod 440 {{ java_keyring_file }}
|
||||
chgrp {{ orientdb_user }} {{ java_keyring_file }}
|
||||
logger "orientdb letsencrypt hook: shut down orientdb."
|
||||
/etc/init.d/orientdb stop
|
||||
sleep 30
|
||||
/etc/init.d/orientdb start
|
||||
logger "orientdb letsencrypt hook: start orientdb."
|
||||
logger "orientdb letsencrypt hook: the keystore has been updated with the renewed certificate."
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue