File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
resources/roles/install_uninstall/tasks Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments