install.yml 724 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"
Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
4
    environment: proxy_env
5 6

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

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

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