Non letsencrypt certificates handled externally.
This commit is contained in:
parent
71a51e8de1
commit
4935b95b52
|
@ -9,9 +9,6 @@
|
|||
- name: OrientDB certificates via Letsencrypt
|
||||
ansible.builtin.import_tasks: orientdb_letsencrypt.yml
|
||||
when: orientdb_install
|
||||
- name: OrientDB local certificates
|
||||
ansible.builtin.import_tasks: orientdb_certificates.yml
|
||||
when: orientdb_install
|
||||
- name: OrientDB removal
|
||||
ansible.builtin.import_tasks: orientdb_removal.yml
|
||||
when: not orientdb_install
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
---
|
||||
- name: orientdb_certificates | Manage the Letsencrypt certificates
|
||||
tags: ['orientdb', 'letsencrypt', 'orientdb_letsencrypt']
|
||||
when: orientdb_ssl_enabled
|
||||
block:
|
||||
- name: orientdb_certificates | Create the acme hooks directory if it does not yet exist
|
||||
ansible.builtin.file:
|
||||
dest: "{{ letsencrypt_acme_services_scripts_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
- name: orientdb_certificates | Install a letsencrypt hook to update the orientdb certificate
|
||||
ansible.builtin.template:
|
||||
src: orientdb-letsencrypt-acme.sh.j2
|
||||
dest: "{{ letsencrypt_acme_services_scripts_dir }}/orientdb"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "4555"
|
||||
|
||||
- name: orientdb_certificates | Remove the hook if letsencrypt is not used
|
||||
tags: ['orientdb', 'letsencrypt', 'orientdb_letsencrypt']
|
||||
when: not orientdb_letsencrypt_ssl_enabled
|
||||
block:
|
||||
- name: orientdb_certificates | Install a letsencrypt hook to update the orientdb certificate
|
||||
ansible.builtin.file:
|
||||
dest: "{{ letsencrypt_acme_services_scripts_dir }}/orientdb"
|
||||
state: absent
|
Loading…
Reference in New Issue