updating vhost_update playbook to handle f22+ dnf hosts

This commit is contained in:
Tim Flink 2015-10-06 20:10:56 +00:00
parent c1a0a783e8
commit aef03726b0

View file

@ -35,11 +35,23 @@
- name: expire-caches
command: yum clean expire-cache
when: ansible_distribution_major_version|int < 22
- name: expire-caches
command: dnf clean expire-cache
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: yum -y {{ yumcommand }}
command: yum -y {{ yumcommand }}
async: 7200
poll: 30
when: ansible_distribution_major_version|int < 22
- name: dnf -y {{ yumcommand }}
command: dnf -y {{ yumcommand }}
async: 7200
poll: 30
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
- name: run rkhunter if installed
hosts: "{{ target }}:myvms_new"