From aef03726b0d06d1345b9459abea3e52717d0975c Mon Sep 17 00:00:00 2001 From: Tim Flink Date: Tue, 6 Oct 2015 20:10:56 +0000 Subject: [PATCH] updating vhost_update playbook to handle f22+ dnf hosts --- playbooks/vhost_update.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/playbooks/vhost_update.yml b/playbooks/vhost_update.yml index 942732c722..aecf2e70e0 100644 --- a/playbooks/vhost_update.yml +++ b/playbooks/vhost_update.yml @@ -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"