slaves.yml 598 Bytes
Newer Older
1
---
2
3
  - name: Install Apache kafka.
    include: install.yml
4

5
  - name: Configure Apache kafka.
6
    template: src=server.properties.j2 dest="{{ installation_path }}/kafka/config/server.properties" owner=root group=root mode=0644
7
8
9
10
    tags:
      - configure-kafka

  - name: Start Apache Kafka server.
11
    shell: /etc/init.d/kafka-init start # Should use ansible module service: name=zookeeper-init state=started when the bug in version 1.9.1 is fixed.
12
13
14
15
16
17
18
19
    tags:
      - start-kafka

  - name: Wait for Apache Kafka server to become available.
    wait_for: port=9092
    tags:
      - start-kafka