From ded54be2fbcd5eef4d53b15e9760054cd37adb9b Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 11 Jun 2019 16:09:15 +0100 Subject: [PATCH] mbs: yum -> package Signed-off-by: Nils Philippsen --- playbooks/manual/upgrade/mbs.yml | 54 ++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/playbooks/manual/upgrade/mbs.yml b/playbooks/manual/upgrade/mbs.yml index 952370bd32..309a4c2fed 100644 --- a/playbooks/manual/upgrade/mbs.yml +++ b/playbooks/manual/upgrade/mbs.yml @@ -14,20 +14,23 @@ - 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 mbs packages from main repo - yum: name={{item}} state=latest + - name: update mbs packages from main repo + package: + name: + - module-build-service + - libmodulemd1 + - python2-solv + state: latest when: not testing - with_items: - - module-build-service - - libmodulemd1 - - python2-solv - - name: yum update mbs packages from testing repo - yum: name={{item}} state=latest enablerepo=infrastructure-tags-stg + - name: update mbs packages from testing repo + yum: + name: + - module-build-service + - libmodulemd1 + - python2-solv + state: latest + enablerepo: infrastructure-tags-stg when: testing - with_items: - - module-build-service - - libmodulemd1 - - python2-solv - name: push packages out to backend hosts: mbs_backend:mbs_backend_stg @@ -45,20 +48,23 @@ - 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 mbs packages from main repo - yum: name={{item}} state=latest + - name: update mbs packages from main repo + package: + name: + - module-build-service + - libmodulemd1 + - python2-solv + state: latest when: not testing - with_items: - - module-build-service - - libmodulemd1 - - python2-solv - - name: yum update mbs packages from testing repo - yum: name={{item}} state=latest enablerepo=infrastructure-tags-stg + - name: update mbs packages from testing repo + yum: + name: + - module-build-service + - libmodulemd1 + - python2-solv + state: latest + enablerepo: infrastructure-tags-stg when: testing - with_items: - - module-build-service - - libmodulemd1 - - python2-solv - name: verify the frontend and stop it hosts: mbs_frontend:mbs_frontend_stg