New playbook to push out packages, usually from lockbox.
This commit is contained in:
parent
ad4fc390f6
commit
12a4eca746
2 changed files with 17 additions and 0 deletions
17
playbooks/update_packages.yml
Normal file
17
playbooks/update_packages.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue