From 328c21ca3ab724bcc64194424e131b8f8bd39e0a Mon Sep 17 00:00:00 2001 From: Alex Dworjan Date: Tue, 17 Oct 2023 09:19:14 -0400 Subject: [PATCH] improved error handling --- .ansible-sign/sha256sum.txt | 2 +- .ansible-sign/sha256sum.txt.sig | 22 +++++++++++----------- roles/kafka/tasks/main.yml | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.ansible-sign/sha256sum.txt b/.ansible-sign/sha256sum.txt index 41209ca..7dd45b6 100644 --- a/.ansible-sign/sha256sum.txt +++ b/.ansible-sign/sha256sum.txt @@ -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 -70078a53895da6af9f14f6d64ab7074aa6f79af2bb3c5777c2d8d78e3a215583 roles/kafka/tasks/main.yml +c84ba59db2f5d91530ef26958b253432321ecc571b7d840831d5b11675e93544 roles/kafka/tasks/main.yml 2d12114b12a76da493a951ed2c1abcd3d2d3e5a1ca0dcb0943fbc91665f5f91a roles/prometheus/defaults/main.yml a8355ca3078663433c90e991a1a9622ae2d5b911696aef4a62701ed6a454690c roles/prometheus/handlers/main.yml 4116ff338c5ffed270d770729ff19e4f0a85365be1745f282fd35f50ca660fd6 roles/prometheus/tasks/main.yml diff --git a/.ansible-sign/sha256sum.txt.sig b/.ansible-sign/sha256sum.txt.sig index 3df0f83..34aa8ec 100644 --- a/.ansible-sign/sha256sum.txt.sig +++ b/.ansible-sign/sha256sum.txt.sig @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNATURE----- -iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEF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VsZmqGWg/1SIP +kKgsJA94AURiDBiFSAnPjb59vJ3Tax73oJmSNWt3YaGNb/TJpOYLJ5v+gGs/b4Z1 +ktvK9c3Z +=ie7k -----END PGP SIGNATURE----- diff --git a/roles/kafka/tasks/main.yml b/roles/kafka/tasks/main.yml index 5e69ed6..7f4fbd0 100644 --- a/roles/kafka/tasks/main.yml +++ b/roles/kafka/tasks/main.yml @@ -64,5 +64,6 @@ 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: '"already exists" not in kafkatopic.stderr' tags: - createtopic