adding dnf support to denyhosts

This commit is contained in:
Tim Flink 2015-11-09 19:09:48 +00:00
parent 4e667a64bf
commit b120cb0348

View file

@ -1,9 +1,16 @@
---
#install denyhosts
- name: install denyhosts
- name: install denyhosts (yum)
yum: name=denyhosts state=present
tags:
- packages
when: ansible_distribution_major_version|int < 22
- name: install denyhosts (dnf)
dnf: name=denyhosts state=present
tags:
- packages
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: /etc/denyhosts.conf
copy: src=denyhosts.conf dest=/etc/denyhosts.conf