Skip to content

Commit

Permalink
fixed failed when statemen to use and
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Oct 18, 2023
1 parent 46f7aa7 commit 7389db2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 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
ce806d6bc4f26c4615bb86e2cf99b9b73962222c605492dcdc8fe4cb652380e7 roles/kafka/tasks/main.yml
b6feda249d68b441cf3dedb363eee0aa78543b6566b276542ec93da0830c5890 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/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmUwDYcACgkQTiIiIXrU
DNHprwv5AQpSX/zaNEgGQ6eULSHlwsNA3I4+Ef3rXz1GfmppHt+l8PEm8I/PrAGV
wUcvNS0KV0ZS+BO3KDblUoy4FYxChSML2raq6ddCc6YXLwd04SIRoaeMSJrUsBmm
VlTlpz8m4haUvJH45PUliY5Ug4W5TZtTYulHhovv0RAGO1/mJMBn5z8hmQV/JjUu
mhBVEGVSNlgX9K7h0QIf9kq6P1tymhim0HdITZE3IgfvwbgdhSpeqTC+oCsoX6EO
uJpyRhxq4l/nvzkQdnT66niJV+rhbcIaVoMBUrDq5LDDToq90gsIsRluS61Vhcv8
b1PY17Y4hBXSYSiSTfWEmsbAwcAFJ5O/fUQjAgn/BQBfsnVq650ulBftYnmuQT3C
tQAck83q9kdUAMik+5YbQH9T9QPI2gGzA6ZEP2ZuQ/njiXFNU5q64U+ZrXuRHtBQ
GTzjpAQwzSoqr6gFSyhCs5MywWO5N7Ab66FXnyk48D4JqyTTDfp3HWAPT8OrwHMU
SumzOglv
=Jpeg
iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmUwDiQACgkQTiIiIXrU
DNEElgv6A1wzpOa+etHhEg/5GpLeYHTABA212RmsCiToCqlyAGcDNRJ8ZLeyc1QO
vfe+lPzxYR87U/VQbtMdWfDb2qZ/CZnPNRNbo1Id1QVsNqzgejRAIr8ojMqMz1+i
VcmZlCw4K1Y05eQCxgS5DyjckfZDUz5x0Th4HVzzC8/DhmwM875V6jOzgqKESy5p
5nFJVv97Vdw23uTfkTbX1yg9QyOlHLizeGS9v8qLiIblMvfm0sM0rL+JNBp3hMvQ
H5Hz6ZGBua752vC8L4Uw2gIwJnaqPJ7DEVnMEmGa08sB4dS3CFGqjEVEEusuKcpu
NR4pJ6YE27kMT6c5SIpn0KgI1X/bUK7d7rsPZgfOEFGCel3RTar5SRxMrwJdQ2cW
KQNwpboizS5jvqqW0bdUk5aWP7JUwSgmlCpeGxTJaWyOgvFQut3ZZddWO5vWAV//
GR0q9MSVp0HtwxJOXFIHMnirun/n4yFx58rGAl5MtEg1gR9v56gaIKT9u7ek6pdt
uhEETRZm
=ztj9
-----END PGP SIGNATURE-----
4 changes: 3 additions & 1 deletion roles/kafka/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
ansible.builtin.command: "/opt/kafka_2.13-3.6.0/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic {{ topic }}"
register: kafkatopic
changed_when: kafkatopic.stdout == "Created topic " ~ topic ~ "."
failed_when: kafkatopic.stdout != "Created topic " ~ topic ~ "." or "already exists" not in kafkatopic.stderr
failed_when:
- '"already exists" not in kafkatopic.stderr'
- kafkatopic.stdout != "Created topic " ~ topic ~ "."
tags:
- createtopic

0 comments on commit 7389db2

Please sign in to comment.