From 4e44d16b3f8c8dc30af461cbe20e8cf0bcb02911 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 10 Dec 2012 18:21:04 +0000 Subject: [PATCH] add ${yumcommand} so we can pass in manual excludes --- playbooks/package-update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/package-update.yml b/playbooks/package-update.yml index ce6d3fbc13..3925653f71 100644 --- a/playbooks/package-update.yml +++ b/playbooks/package-update.yml @@ -1,4 +1,4 @@ -# requires --extra-vars="hostlist='host1 host2 group etc'" +# requires --extra-vars="hostlist='host1 host2 group etc' yumcommand=update'" - name: update all run rkhunter if installed hosts: $hostlist @@ -6,7 +6,7 @@ tasks: - name: yum update - action: command yum -y update + action: command yum -y ${yumcommand} - name: check for rkhunter action: command /usr/bin/test -f /usr/bin/rkhunter