Skip to content

DFazeli/cluster_kafka_ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible-kafka-zk

We need to take several steps to run this role.

step 1: you need to install ansible. for install ansible Follow these commands.

[root@ansibleserver]# yum install ansible

step 2: go to this path /etc/ansible/ and edit hosts file, add this line of code to the end of the file.

[root@ansibleserver]# vim /etc/ansible/hosts

[kafka]
kafka1 ansible_host=192.168.231.91
kafka2 ansible_host=192.168.231.92
kafka3 ansible_host=192.168.231.93

step 3: Download the role and move to the specified path. /etc/ansible/roles/

step 4: Now, we need to create playbook file. so, follow these commands:

[root@ansibleserver]# vim /etc/ansible/playbook-zk-kafka.yml

---
    - hosts:
        - kafka
      roles:
        - ansible-kafka-zk

step 5: Finally, we run the following role

[root@ansibleserver]# cd /etc/ansible
[root@ansibleserver ansible]# ansible-palybook playbook-zk-kafka.yml

About

install kafka and zookeeper by ansibe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages