18 lines
455 B
YAML
18 lines
455 B
YAML
# requires --extra-vars="target='host1;host2;group etc' package='python-tahrir'
|
|
#
|
|
# Alternatively, you could update a group of packages like
|
|
# --extra-vars="package='python-t*'"
|
|
|
|
# TODO -- how do make it easy to select the infra-testing repo?
|
|
|
|
- name: push packages out
|
|
hosts: "{{ target }}"
|
|
user: root
|
|
|
|
tasks:
|
|
|
|
- name: expire-caches
|
|
command: yum clean expire-cache
|
|
|
|
- name: yum update {{ package }}
|
|
yum: name={{ package }} state=latest
|