2013-03-04 22:37:13 +00:00
|
|
|
# requires --extra-vars="target='host1;host2;group etc' yumcommand=update'"
|
2012-12-10 18:19:36 +00:00
|
|
|
|
|
|
|
|
- name: update all run rkhunter if installed
|
2013-03-04 22:37:13 +00:00
|
|
|
hosts: $target
|
2012-12-10 18:19:36 +00:00
|
|
|
user: root
|
|
|
|
|
|
|
|
|
|
tasks:
|
2012-12-10 19:42:33 +00:00
|
|
|
- name: expire-caches
|
|
|
|
|
action: command yum clean expire-cache
|
|
|
|
|
|
|
|
|
|
- name: yum -y ${yumcommand}
|
2012-12-10 18:21:04 +00:00
|
|
|
action: command yum -y ${yumcommand}
|
2013-02-27 21:31:53 +00:00
|
|
|
async: 7200
|
|
|
|
|
poll: 15
|
2012-12-10 18:19:36 +00:00
|
|
|
|
|
|
|
|
- name: check for rkhunter
|
|
|
|
|
action: command /usr/bin/test -f /usr/bin/rkhunter
|
|
|
|
|
register: rkhunter
|
2012-12-10 18:25:32 +00:00
|
|
|
ignore_errors: true
|
2012-12-10 18:19:36 +00:00
|
|
|
|
|
|
|
|
- name: run rkhunter --propupd
|
|
|
|
|
action: command /usr/bin/rkhunter --propupd
|
2013-07-05 17:15:37 +00:00
|
|
|
when: rkhunter|success
|
2012-12-10 18:19:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|