mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add ${yumcommand} so we can pass in manual excludes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user