From cf1199ac3dbd2a4da2a7ea913ae24298ec5d0e33 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 10 Dec 2012 18:19:36 +0000 Subject: [PATCH] firt cut of package-update playbook - needs testing --- playbooks/package-update.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 playbooks/package-update.yml diff --git a/playbooks/package-update.yml b/playbooks/package-update.yml new file mode 100644 index 0000000000..ce6d3fbc13 --- /dev/null +++ b/playbooks/package-update.yml @@ -0,0 +1,22 @@ +# requires --extra-vars="hostlist='host1 host2 group etc'" + +- name: update all run rkhunter if installed + hosts: $hostlist + user: root + + tasks: + - name: yum update + action: command yum -y update + + - name: check for rkhunter + action: command /usr/bin/test -f /usr/bin/rkhunter + register: rkhunter + + - name: run rkhunter --propupd + action: command /usr/bin/rkhunter --propupd + only_if: "'${rkhunter.rc}' == '0'" + + + + +