install.yml 670 Bytes
Newer Older
1
2
---
  - name: Download Apache Kafka.
3
    get_url: url="{{ mirror_url }}/{{ version }}/kafka_{{ scala_version }}-{{ version }}.tgz" dest="{{ download_path }}/kafka_{{ scala_version }}-{{ version }}.tgz"
4
5

  - name: Uncompress Apache Kafka.
6
    unarchive: src="{{ download_path }}/kafka_{{ scala_version }}-{{ version }}.tgz" dest="{{ installation_path }}" copy=no
7
8

  - name: Create softlink for Apache Kafka.
9
    file: src="{{ installation_path }}/kafka_{{ scala_version }}-{{ version }}" dest="{{ installation_path }}/kafka" state=link
10

11
12
13
  - name: Copy Apache Kafka init script.
    template: src=kafka-init.j2 dest=/etc/init.d/kafka-init owner=root group=root mode=0755