Skip to content

Commit

Permalink
feat: use ansible.builtin.dnf module
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Muransky committed Jun 5, 2024
1 parent 3be4b64 commit c1bedf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/keepalived.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c1bedf6

Please sign in to comment.