Make work for any dnf/yum compatible system, not just what we know about

This commit is contained in:
Jason Rothstein 2019-12-24 23:30:01 -06:00
parent 90a7d2c631
commit eb7f4905f5

View File

@ -13,7 +13,7 @@
- name: 'ensure patch'
when:
- ansible_system == 'Linux'
- ansible_distribution == 'CentOS' or ansible_distribution == 'Fedora' or ansible_distribution == 'OracleLinux'
- ansible_pkg_mgr == 'dnf' or ansible_pkg_mgr == 'yum'
package:
name: '*'
state: 'latest'