From c1bedf66095cc3c4bbfed60079a26708c3c50474 Mon Sep 17 00:00:00 2001 From: Michal Muransky Date: Wed, 5 Jun 2024 22:00:09 +0200 Subject: [PATCH] feat: use ansible.builtin.dnf module --- tasks/keepalived.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/keepalived.yml b/tasks/keepalived.yml index d37effb..c2d6603 100644 --- a/tasks/keepalived.yml +++ b/tasks/keepalived.yml @@ -5,10 +5,10 @@ update_cache: true when: ansible_pkg_mgr == 'apt' -- name: Update dnf/yum cache - ansible.builtin.yum: +- name: Update dnf cache + ansible.builtin.dnf: update_cache: true - when: ansible_pkg_mgr == 'dnf' or ansible_pkg_mgr == 'yum' + when: ansible_pkg_mgr == 'dnf' - name: Install packages ansible.builtin.package: