From 79571c074e42d31f7032a2f2d48b4209fe7490f3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 11 Jun 2019 16:34:39 +0200 Subject: [PATCH] fedimg: Replace the yum module by the package module where applicable Signed-off-by: Pierre-Yves Chibon --- playbooks/manual/upgrade/fedimg.yml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/playbooks/manual/upgrade/fedimg.yml b/playbooks/manual/upgrade/fedimg.yml index 3acf1dcba4..62773a6a04 100644 --- a/playbooks/manual/upgrade/fedimg.yml +++ b/playbooks/manual/upgrade/fedimg.yml @@ -12,23 +12,18 @@ - name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%} command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%} check_mode: no - - name: yum update fedimg packages from main repo - yum: name="{{ item }}" state=latest - with_items: - - python2-fedimg - - python2-libcloud - - python2-fedfind - - python2-toml - - python-vcrpy + + - name: update fedimg packages from main repo + package: + name=["python2-fedimg", "python2-libcloud", "python2-fedfind", "python2-toml", "python-vcrpy"] + state=latest when: not testing - - name: yum update fedimg packages from testing repo - yum: name="{{ item }}" state=latest enablerepo=infrastructure-tags-stg - with_items: - - python2-fedimg - - python2-libcloud - - python2-fedfind - - python2-toml - - python-vcrpy + + - name: update fedimg packages from testing repo + yum: + name=["python2-fedimg", "python2-libcloud", "python2-fedfind", "python2-toml", "python-vcrpy"] + state=latest + enablerepo=infrastructure-tags-stg when: testing - name: verify the backend and restart it