add ${yumcommand} so we can pass in manual excludes

This commit is contained in:
Seth Vidal 2012-12-10 18:21:04 +00:00
parent cf1199ac3d
commit 4e44d16b3f

View file

@ -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