Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tasks/pkg-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@
warn: no
when: repofile5.changed or repofile6.changed or repofile7.changed or repofilecustom.changed

# On certain version of dnf, gpg keys aren't imported into the local db with the package install task.
# This rule assures that they are correctly imported into the local db and users won't have to manually accept
# them if running dnf commands on the hosts.
- name: Refresh Datadog repository cache # noqa 503
command: yum -y makecache --disablerepo="*" --enablerepo=datadog
failed_when: false
args:
warn: no
when: repofile5.changed or repofile6.changed or repofile7.changed or repofilecustom.changed

- name: Remove old yum repo files
yum_repository:
name: "ansible_datadog_{{ item }}"
Expand Down