Skip to content

Commit

Permalink
remove yum support
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Aug 29, 2024
1 parent 2b38e66 commit 9426b10
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,3 @@
ansible.builtin.dnf:
update_cache: true
when: ansible_pkg_mgr == "dnf"

- name: "Update yum cache"
become: true
ansible.builtin.yum:
update_cache: true
when: ansible_pkg_mgr == "yum"
3 changes: 0 additions & 3 deletions tasks/repo-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@
state: absent
notify:
- "Update dnf cache"
- "Update yum cache"

- name: "Add netdata repository"
when: netdata_agent_state == "present"
notify:
- "Update dnf cache"
- "Update yum cache"
block:
- name: "Ensure netdata repo key is present (RedHat Family)"
ansible.builtin.rpm_key:
Expand Down Expand Up @@ -85,7 +83,6 @@
when: netdata_agent_state == "absent"
notify:
- "Update dnf cache"
- "Update yum cache"
block:
- name: "Ensure netdata repository is removed (RedHat Family): stable"
ansible.builtin.yum_repository:
Expand Down

0 comments on commit 9426b10

Please sign in to comment.