Skip to content

Commit

Permalink
combine tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Oct 16, 2023
1 parent 8c6affc commit d46a116
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .ansible-sign/sha256sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ e0aa583a3faf802922a6cb66c3e2fa5906105a619a6d9821f47c6a068e728570 jenkins.yml
d26a0f12ebb5835b5aa36074b24addf52fdca91939d97244eb682bb3bd05545e roles/jenkins_setup/files/shadowman.xml
3ce37f28b0b4cd83a86440fdfbc1148f6a61125dd4dcf900b953778a588ac12b roles/jenkins_setup/tasks/main.yml
fde421bd02e9d5d96effcbef92b4657f2ed9283855cebafcb3246c4829882382 roles/kafka/handlers/main.yml
d93abc07beafb969c8688eef300771f799b82bc4785cfd1549e31f0d35108a74 roles/kafka/tasks/main.yml
6ddd1212e3eed8ba6502e47c20d1cd3e7bfae402a4f24493c5cc735260f704ab roles/kafka/tasks/main.yml
2d12114b12a76da493a951ed2c1abcd3d2d3e5a1ca0dcb0943fbc91665f5f91a roles/prometheus/defaults/main.yml
a8355ca3078663433c90e991a1a9622ae2d5b911696aef4a62701ed6a454690c roles/prometheus/handlers/main.yml
4116ff338c5ffed270d770729ff19e4f0a85365be1745f282fd35f50ca660fd6 roles/prometheus/tasks/main.yml
Expand Down
22 changes: 11 additions & 11 deletions .ansible-sign/sha256sum.txt.sig
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmUtnpcACgkQTiIiIXrU
DNF+9Av/e+DnI1jsB7sY0crLSu52djJzzFiNsH/Gv/fGUqqV4BN4cE0FjcreR/iF
z37U6mbPTCokKzS5QK/HhpLbwtzLqSv6vecCe0HqlxH6nx5ToXDa09sazEVDxasz
O0PtCWwic7hmezMt1Oon0y9EwI+jDIPF/pSi/VUebhAp9lBSz1WzkH7omcE9egoI
uGlRWCmMPavXbWDBYfJfIwUNXbMh6dpkGcTndaRvwBd5Fu0C59o5QweH4bok47YM
qCM0amQE3Yeoxp3QgV1c3fpguM+dhym6yXxcfsWZLSpMZWvZ+wCCk7PpzX8EJ0nA
nUKiJX+9g0v2uTcQqtTSt8ipfsGHUvZMwYVjt9VUze3WwgmI+iu/PiFjtzwpjGHL
kW46unjHZaLHuvqQBe7TxXgPCLAtSQ2o4KPxX+ViEXlsVGYgiwvmKuyMLc3whmk9
/ru/H+VoI1tHdVuWdqcQ8ZnvtMdXvmdoacKgwOzcEK90qxeua3qUCTQG+8NFDypE
bJoCcsg1
=STq9
iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmUtnyEACgkQTiIiIXrU
DNG5qgv/fJe/oARHg9Py5JISyEn8NT4mtMwLpAXByUgSgzlE5mZbKcRwum/ye6HA
+D8ODKxG9URQoPfnk6ec5NtXoqfCcquLSCaNgPTYtunmL8vKL9xcP0G2NLpFTG3l
sx9P/o6JnOkkUEVd018XVcDJTpRRcsRwKyvAVvCoAFBNTKCD+sCFb9eecn64N/+3
WJTU+Tmqskn8bpwM3GfmoX75nu0ngBAljJ7s6UxG0MxYZnCEXKH9XZ8ezml44Kni
TSWLTF+iPLvfvnVg4/ZB3m47mKKtP/7iVqjJ+O9uDgtTRNrGbzl63gpXS7Fh3qI+
iFKTwTm0YNZJZrcKERfWZ1Rmv+oQypbCq1XSRRBP5GPgOrFa9rbLolyO1SyzJT92
MjBjEea5gGu4QJcTSNf6rQ3eT15mljBUMfU8d4Ya2AF6qbqj9n/HoqEoYmnrYokr
QE1C6NAYbXZTZe/DVdzY4T2uGEd2E2GKqWDjfkvkbTBST7Pba4TVII2fBeiPhc1k
jEahgjny
=hOne
-----END PGP SIGNATURE-----
7 changes: 2 additions & 5 deletions roles/kafka/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,12 @@
notify: "Restart Firewalld"

- name: Download Kafka tools
ansible.builtin.get_url:
url: 'https://downloads.apache.org/kafka/3.6.0/kafka_2.13-3.6.0.tgz'
dest: '/opt/kafka_2.13-3.6.0.tgz'
mode: '0644'

- name: Extract kafka tar
ansible.builtin.unarchive:
src: '/opt/kafka_2.13-3.6.0.tgz'
src: 'https://downloads.apache.org/kafka/3.6.0/kafka_2.13-3.6.0.tgz'
dest: '/opt/kafka'
remote_src: true

- name: Create Kafka topic
ansible.builtin.command: "/opt/kafka/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic {{ topic }}"

0 comments on commit d46a116

Please sign in to comment.