Skip to content

Commit 207fc9b

Browse files
committed
Fix minimal tests for curl on centos8els
1 parent f73a930 commit 207fc9b

File tree

1 file changed

+13
-2
lines changed
  • resources/roles/install_uninstall/tasks

1 file changed

+13
-2
lines changed

resources/roles/install_uninstall/tasks/main.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,24 @@
1414
tags:
1515
- install_package
1616

17-
- name: Install RPM package
17+
- name: Install RPM package (8 and higher)
18+
dnf:
19+
name: "{{ pkg_name }}"
20+
state: present
21+
allow_downgrade: true
22+
allowerasing: true
23+
lock_timeout: 300
24+
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version >= '8'
25+
tags:
26+
- install_package
27+
28+
- name: Install RPM package (7 and lower)
1829
yum:
1930
name: "{{ pkg_name }}"
2031
state: present
2132
allow_downgrade: true
2233
lock_timeout: 300
23-
when: ansible_facts.os_family == 'RedHat'
34+
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version < '8'
2435
tags:
2536
- install_package
2637

0 commit comments

Comments
 (0)