Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 660 Bytes

README.md

File metadata and controls

29 lines (26 loc) · 660 Bytes

ansible-role-kafka

Purpose

This ansible role installs kafka cluster or standalone instance based on KRaft protocol.

Install

ansible-galaxy role install m-shalenko.ansible-role-kafka

Example of inventory and playbook

  1. inventory file
[kafka]
kafka-1.example.com kafka_node_id=1 kafka_process_roles=broker,controller
kafka-2.example.com kafka_node_id=2 kafka_process_roles=broker,controller
kafka-3.example.com kafka_node_id=3 kafka_process_roles=broker,controller
  1. Playbook
---
- hosts: kafka
  become: true
  gather_facts: false
  roles:
    - role: m-shalenko.ansible-role-kafka
      tags:
        - kafka