From 4e8cc9bcf2451c4ece94f8954d2b10c0fedd2317 Mon Sep 17 00:00:00 2001
From: transcaffeine <transcaffeine@finally.coffee>
Date: Tue, 29 Oct 2024 17:53:16 +0100
Subject: [PATCH] meta: deprecate elasticsearch role

---
 README.md                          | 3 ++-
 galaxy.yml                         | 1 -
 roles/elasticsearch/tasks/main.yml | 5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index c808d50..cf4788e 100644
--- a/README.md
+++ b/README.md
@@ -5,9 +5,10 @@
 This ansible collection provides various roles for installing
 and configuring basic system utilities like gnupg, ssh etc
 
-- [`elasticsearch`](roles/elasticsearch/README.md): Deploy [elasticsearch](https://www.docker.elastic.co/r/elasticsearch/elasticsearch-oss),
+- DEPRECATED: [`elasticsearch`](roles/elasticsearch/README.md): Deploy [elasticsearch](https://www.docker.elastic.co/r/elasticsearch/elasticsearch-oss),
   a popular (distributed) search and analytics engine, mostly known by it's
   letter "E" in the ELK-stack.
+  This role has been moved to the `finallycoffee.databases.elasticsearch` ansible collection.
 
 - [`git`](roles/git/README.md): configures git on the target system
 
diff --git a/galaxy.yml b/galaxy.yml
index 8757d5c..ee55126 100644
--- a/galaxy.yml
+++ b/galaxy.yml
@@ -14,7 +14,6 @@ repository: https://git.finally.coffee/finallycoffee/base
 issues: https://codeberg.org/finallycoffee/ansible-collection-base/issues
 tags:
   - docker
-  - elastic
   - lego
   - minio
   - nginx
diff --git a/roles/elasticsearch/tasks/main.yml b/roles/elasticsearch/tasks/main.yml
index 76595bf..9869e92 100644
--- a/roles/elasticsearch/tasks/main.yml
+++ b/roles/elasticsearch/tasks/main.yml
@@ -1,4 +1,9 @@
 ---
+- name: Warn about deprecation and move of role
+  ansible.builtin.debug:
+    msg: >-2
+      This ansible role has been moved to the finallycoffee.databases
+      ansible collection and will no longer be maintained here!
 
 - name: Ensure host directories are present
   file: