diff --git a/tasks/main.yml b/tasks/main.yml index d87b2ea..6d0f019 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/tasks/orientdb_certificates.yml b/tasks/orientdb_certificates.yml deleted file mode 100644 index 337911e..0000000 --- a/tasks/orientdb_certificates.yml +++ /dev/null @@ -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