From 5be0661c51be5bb90266db64f242c1ee06f4a89c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 9 Apr 2019 19:13:01 +0000 Subject: [PATCH] vhost_update: switch to package to call the right backend and fix other issues. Signed-off-by: Kevin Fenzi --- playbooks/vhost_update.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/playbooks/vhost_update.yml b/playbooks/vhost_update.yml index e0879029d3..86f3605f00 100644 --- a/playbooks/vhost_update.yml +++ b/playbooks/vhost_update.yml @@ -42,21 +42,13 @@ user: root tasks: - - name: expire-caches - command: yum clean expire-cache - when: ansible_distribution_major_version|int < 22 - - - name: yum -y {{ yumcommand }} - command: yum -y {{ yumcommand }} + - name: Apply updates + package: + state: latest + name: "*" + update_cache: true async: 7200 poll: 30 - when: ansible_distribution_major_version|int < 22 - - - name: dnf -y {{ yumcommand }} --refresh - command: dnf -y {{ yumcommand }} --refresh - 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"