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
|
||||
# --extra-vars="yumcommand='update 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
|
||||
|
@ -11,7 +13,5 @@
|
|||
- name: expire-caches
|
||||
action: command yum clean expire-cache
|
||||
|
||||
- name: yum -y ${yumcommand}
|
||||
action: command yum -y ${yumcommand}
|
||||
async: 7200
|
||||
poll: 15
|
||||
- name: yum update ${package}
|
||||
yum: name=${package} state=latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue