Commit e88035f8 e88035f8f333aeb9e18034a6e1ccce9fbe720354 by Khaled

modified: roles/kafka/tasks/config.yml

	modified:   roles/kafka/tasks/install_JRE.yml
	modified:   roles/kafka/tasks/install_kafka.yml
	modified:   roles/kafka/tasks/main.yml
	modified:   roles/kafka/tasks/user.yml
1 parent 017a091f
1 - name: set the server configuration
...\ No newline at end of file ...\ No newline at end of file
1 - name: set the server configuration
2 template:
3 src: ./templates/srvprop.j2
4 dest: /opt/kafka_2.13-3.3.1/config/server.properties
...\ No newline at end of file ...\ No newline at end of file
......
1 - name: install JRE 1 - name: install JRE
2 apt: 2 apt:
3 name: default-JRE 3 name: default-jre
4 state: present 4 state: present
5 autoclean: yes 5 autoclean: yes
6 cache_valid_time: 3600 6 cache_valid_time: 3600
...\ No newline at end of file ...\ No newline at end of file
......
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-3.3.1-src.tgz 3 url: https://downloads.apache.org/kafka/3.3.1/kafka_2.13-3.3.1.tgz
4 dest: /opt/kafka-3.3.1-src.tgz 4 dest: /opt/kafka_2.13-3.3.1.tgz
5 5
6 - name: unzip the downloaded jdk 6 - name: unzip the downloaded jdk
7 unarchive: 7 unarchive:
8 src: /opt/kafka-3.3.1-src.tgz 8 src: /opt/kafka_2.13-3.3.1.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 --- 1 ---
2 - include_tasks: "user.yml" 2 - include_tasks: "user.yml"
3 - include_tasks: "install_JRE.yml" 3 - include_tasks: "install_JRE.yml"
4 - include_tasks: "install_kafka.yml"
...\ No newline at end of file ...\ No newline at end of file
4 - include_tasks: "install_kafka.yml"
5 - include_tasks: "config.yml"
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -8,5 +8,5 @@ ...@@ -8,5 +8,5 @@
8 user: 8 user:
9 name: kafka 9 name: kafka
10 group: kafka 10 group: kafka
11 password: "{{ my_password | password_hash('sha512') }}" 11 password: "{{ 'my_password'| password_hash('sha512') }}"
12 register: __kafka_user__ 12 register: __kafka_user__
...\ No newline at end of file ...\ No newline at end of file
......