Skip to content

Commit e4d6c9a

Browse files
committed
fix ansible_pkg_mgr == "dnf" value not being considered for dnf4
fixes #12
1 parent 31ce22a commit e4d6c9a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tasks/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
ansible.builtin.set_fact:
55
dnf_automatic_package_name: dnf-automatic
66
dnf_automatic_systemd_timer: dnf-automatic-install.timer
7-
when:
8-
- ansible_pkg_mgr == "dnf4"
7+
when: ansible_pkg_mgr == "dnf4" or ansible_pkg_mgr == "dnf"
98

109
- name: Set DNF5 variables
1110
ansible.builtin.set_fact:
1211
dnf_automatic_package_name: dnf5-plugin-automatic
1312
dnf_automatic_systemd_timer: dnf5-automatic.timer
14-
when:
15-
- ansible_pkg_mgr == "dnf5"
13+
when: ansible_pkg_mgr == "dnf5"
1614

1715
- name: "Install package {{ dnf_automatic_package_name }}"
1816
ansible.builtin.package:

0 commit comments

Comments
 (0)