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