From 8cadf5ae54468ef0a428617eb4686edec0e03872 Mon Sep 17 00:00:00 2001 From: Henry Griffiths <42880130+henrygriffiths@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:16:30 -0600 Subject: [PATCH] Fix apt repo check when using archive install --- roles/common/tasks/ubuntu.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/common/tasks/ubuntu.yml b/roles/common/tasks/ubuntu.yml index d36b8c2674..72ae52772a 100644 --- a/roles/common/tasks/ubuntu.yml +++ b/roles/common/tasks/ubuntu.yml @@ -78,6 +78,7 @@ state: absent when: - repository_configuration == 'custom' + - installation_method == "package" - name: Ensure Confluent Clients Apt Repo does not Exists when repository_configuration is Custom apt_repository: @@ -85,6 +86,7 @@ state: absent when: - repository_configuration == 'custom' + - installation_method == "package" - name: Add Custom Apt Repo copy: @@ -94,7 +96,9 @@ until: apt_custom_add_result is success retries: 5 delay: 90 - when: repository_configuration == 'custom' + when: + - repository_configuration == 'custom' + - installation_method == "package" notify: - apt-get update