Non letsencrypt certificates handled externally.

This commit is contained in:
Andrea Dell'Amico 2023-12-06 19:39:43 +01:00
parent 71a51e8de1
commit 4935b95b52
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 0 additions and 31 deletions

View File

@ -9,9 +9,6 @@
- name: OrientDB certificates via Letsencrypt - name: OrientDB certificates via Letsencrypt
ansible.builtin.import_tasks: orientdb_letsencrypt.yml ansible.builtin.import_tasks: orientdb_letsencrypt.yml
when: orientdb_install when: orientdb_install
- name: OrientDB local certificates
ansible.builtin.import_tasks: orientdb_certificates.yml
when: orientdb_install
- name: OrientDB removal - name: OrientDB removal
ansible.builtin.import_tasks: orientdb_removal.yml ansible.builtin.import_tasks: orientdb_removal.yml
when: not orientdb_install when: not orientdb_install

View File

@ -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