From bc58a2dd6def929c42ce6759da63026bdde7e2db Mon Sep 17 00:00:00 2001 From: Siddhartha Mani Date: Mon, 27 Oct 2025 19:50:29 +0530 Subject: [PATCH] updated YAML Example Playbook Updated YAML for activemq Example Playbook Updated YAML for activemq uninstall Example Playbook --- roles/activemq/README.md | 44 ++++++++++++++++++++++++++++-- roles/activemq_uninstall/README.md | 17 ++++++++++-- 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/roles/activemq/README.md b/roles/activemq/README.md index daea894a..c014696c 100644 --- a/roles/activemq/README.md +++ b/roles/activemq/README.md @@ -541,11 +541,49 @@ Role Variables Example Playbook ---------------- -``` +```yaml --- -- hosts: all +- name: Install and configure Apache ActiveMQ Artemis + hosts: all + become: true + collections: - middleware_automation.amq + + vars: + activemq_version: "2.40.0" + activemq_archive: "apache-artemis-2.40.0-bin.zip" + activemq_download_url: "https://archive.apache.org/dist/activemq/activemq-artemis/2.40.0/" + activemq_dest: "/opt/amq" + activemq_installdir: "/opt/amq/apache-artemis-2.40.0" + activemq_service_user: "amq-broker" + activemq_service_group: "amq-broker" + activemq_service_name: "activemq" + activemq_instance_name: "amq-broker" + activemq_bind_address: "0.0.0.0" + activemq_host: "localhost" + activemq_http_port: 8161 + activemq_port: 61616 + activemq_queues: "queue.in,queue.out" + activemq_users: + - user: amq + password: amqbrokerpass + roles: admin + - user: other + password: amqotherpass + roles: consumer, producer + activemq_roles: + - name: admin + permissions: "createNonDurableQueue,deleteNonDurableQueue,createDurableQueue,deleteDurableQueue,createAddress,deleteAddress,consume,browse,send,manage" + - name: consumer + match: topics.* + permissions: "consume,browse" + - name: producer + match: topics.* + permissions: "send,browse" + activemq_enable_audit: false + activemq_logger_level: "INFO" + roles: - activemq -``` +``` \ No newline at end of file diff --git a/roles/activemq_uninstall/README.md b/roles/activemq_uninstall/README.md index 2134d91f..83e2ff18 100644 --- a/roles/activemq_uninstall/README.md +++ b/roles/activemq_uninstall/README.md @@ -51,9 +51,20 @@ Role Defaults Example Playbook ---------------- -``` +```yaml --- -- hosts: all +- name: Uninstall ActiveMQ Service + hosts: all + become: true + + vars: + activemq_uninstall_skip_user: true + activemq_uninstall_skip_zipfile: false + activemq_version: 2.34.0 + activemq_dest: /custom/amq + activemq_service_user_home: /opt/amq/apache-artemis-2.34.0 + activemq_shared_storage_path: /opt/amq/amq-broker/data/shared + roles: - - middleware_automation.amq.activemq_uninstall + - role: middleware_automation.amq.activemq_uninstall ```