modified: roles/kafka/tasks/config.yml
modified: roles/kafka/tasks/install_JRE.yml modified: roles/kafka/tasks/install_kafka.yml modified: roles/zookeeper/tasks/install_zookeeper.yml modified: roles/zookeeper/tasks/java_install.yml
Showing
5 changed files
with
25 additions
and
5 deletions
| 1 | - name: Download kafka package | 1 | - name: Download kafka package |
| 2 | get_url: | 2 | get_url: |
| 3 | url: https://downloads.apache.org/kafka/3.3.1/kafka_2.13-3.3.1.tgz | 3 | url: https://archive.apache.org/dist/kafka/2.3.0/kafka_2.11-2.3.0.tgz |
| 4 | dest: /opt/kafka_2.13-3.3.1.tgz | 4 | dest: /opt/kafka_2.11-2.3.0.tgz |
| 5 | 5 | ||
| 6 | - name: unzip the downloaded jdk | 6 | - name: unzip the downloaded jdk |
| 7 | unarchive: | 7 | unarchive: |
| 8 | src: /opt/kafka_2.13-3.3.1.tgz | 8 | src: /opt/kafka_2.11-2.3.0.tgz |
| 9 | dest: /opt | 9 | dest: /opt |
| 10 | remote_src: yes | 10 | remote_src: yes |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | - name: create the directory of the node | 1 | - name: create the directory of the node |
| 2 | file: | 2 | file: |
| 3 | path: /appli/zookeeper/data | 3 | path: /appli/zookeeper/ |
| 4 | state: directory | 4 | state: directory |
| 5 | recurse: yes | 5 | recurse: yes |
| 6 | # owner: zookeeper | 6 | # owner: zookeeper |
| 7 | group: | 7 | group: |
| 8 | 8 | ||
| 9 | - name: create all folder for the zookeeper path | ||
| 10 | file: | ||
| 11 | path: /appli/zookeeper/{{item}} | ||
| 12 | state: directory | ||
| 13 | with_items: | ||
| 14 | - log | ||
| 15 | - data | ||
| 16 | - conf | ||
| 17 | - var | ||
| 18 | - bin | ||
| 9 | 19 | ||
| 10 | - name: create the file of the id of the node | 20 | - name: create the file of the id of the node |
| 11 | template: | 21 | template: | ... | ... |
| ... | @@ -24,3 +24,12 @@ | ... | @@ -24,3 +24,12 @@ |
| 24 | with_items: | 24 | with_items: |
| 25 | - 'export JAVA_HOME="/opt/jdk-18.0.2.1"' | 25 | - 'export JAVA_HOME="/opt/jdk-18.0.2.1"' |
| 26 | - 'export PATH=$JAVA_HOME/bin' | 26 | - 'export PATH=$JAVA_HOME/bin' |
| 27 | |||
| 28 | |||
| 29 | #--- mouad work ----------------- | ||
| 30 | |||
| 31 | #- name: install JDK | ||
| 32 | # become: yes | ||
| 33 | # package: | ||
| 34 | # name: openjdk-8-jdk | ||
| 35 | # state: present | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment