New playbook to push out packages, usually from lockbox.

This commit is contained in:
Ralph Bean 2013-08-16 14:16:05 +00:00
parent ad4fc390f6
commit 12a4eca746
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,17 @@
# requires --extra-vars="target='host1;host2;group etc' yumcommand=update'"
#
# Alternatively, you could update a specific package like
# --extra-vars="yumcommand='update python-tahrir*'"
- name: push packages out
hosts: $target
user: root
tasks:
- name: expire-caches
action: command yum clean expire-cache
- name: yum -y ${yumcommand}
action: command yum -y ${yumcommand}
async: 7200
poll: 15