Use the ansible yum module instead of an action.
This commit is contained in:
parent
12a4eca746
commit
abb5fd2041
1 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,9 @@
|
||||||
# requires --extra-vars="target='host1;host2;group etc' yumcommand=update'"
|
# requires --extra-vars="target='host1;host2;group etc' package='python-tahrir'
|
||||||
#
|
#
|
||||||
# Alternatively, you could update a specific package like
|
# Alternatively, you could update a group of packages like
|
||||||
# --extra-vars="yumcommand='update python-tahrir*'"
|
# --extra-vars="package='python-t*'"
|
||||||
|
|
||||||
|
# TODO -- how do make it easy to select the infra-testing repo?
|
||||||
|
|
||||||
- name: push packages out
|
- name: push packages out
|
||||||
hosts: $target
|
hosts: $target
|
||||||
|
@ -11,7 +13,5 @@
|
||||||
- name: expire-caches
|
- name: expire-caches
|
||||||
action: command yum clean expire-cache
|
action: command yum clean expire-cache
|
||||||
|
|
||||||
- name: yum -y ${yumcommand}
|
- name: yum update ${package}
|
||||||
action: command yum -y ${yumcommand}
|
yum: name=${package} state=latest
|
||||||
async: 7200
|
|
||||||
poll: 15
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue