From 52fa9b5c0854e599d1f0ee9a3b6ccbbeb5981ec5 Mon Sep 17 00:00:00 2001 From: Shawn Hardwick Date: Mon, 27 Jan 2025 15:43:37 -0500 Subject: [PATCH] Fix idempotence issue with yum_repository task usage when installing for RHEL --- tasks/pkg-redhat.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/pkg-redhat.yml b/tasks/pkg-redhat.yml index 37b76c46..244df72e 100644 --- a/tasks/pkg-redhat.yml +++ b/tasks/pkg-redhat.yml @@ -156,7 +156,7 @@ description: Datadog, Inc. baseurl: "{{ datadog_agent5_yum_repo }}" enabled: true - includepkgs: "{{ agent_datadog_includepkgs }}" + includepkgs: "{{ agent_datadog_includepkgs | trim }}" repo_gpgcheck: false # we don't sign Agent 5 repodata gpgcheck: "{{ datadog_yum_gpgcheck }}" gpgkey: [ @@ -177,7 +177,7 @@ description: Datadog, Inc. baseurl: "{{ datadog_agent6_yum_repo }}" enabled: true - includepkgs: "{{ agent_datadog_includepkgs }}" + includepkgs: "{{ agent_datadog_includepkgs | trim }}" repo_gpgcheck: "{{ agent_do_yum_repo_gpgcheck }}" gpgcheck: "{{ datadog_yum_gpgcheck }}" gpgkey: [ @@ -198,7 +198,7 @@ description: Datadog, Inc. baseurl: "{{ datadog_agent7_yum_repo }}" enabled: true - includepkgs: "{{ agent_datadog_includepkgs }}" + includepkgs: "{{ agent_datadog_includepkgs | trim }}" repo_gpgcheck: "{{ agent_do_yum_repo_gpgcheck }}" gpgcheck: "{{ datadog_yum_gpgcheck }}" gpgkey: [ @@ -219,7 +219,7 @@ description: Datadog, Inc. baseurl: "{{ datadog_yum_repo }}" enabled: true - includepkgs: "{{ agent_datadog_includepkgs }}" + includepkgs: "{{ agent_datadog_includepkgs | trim }}" repo_gpgcheck: "{{ agent_do_yum_repo_gpgcheck }}" gpgcheck: "{{ datadog_yum_gpgcheck }}" gpgkey: [