From f8d55e697bef76a2bc73ed8ba70eef4eaecf4036 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 31 Oct 2017 09:22:40 +0000 Subject: [PATCH] Infra-tags-stg is always enabled on staging machines Signed-off-by: Patrick Uiterwijk --- playbooks/manual/upgrade/odcs.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/playbooks/manual/upgrade/odcs.yml b/playbooks/manual/upgrade/odcs.yml index c81daac854..7025c8170c 100644 --- a/playbooks/manual/upgrade/odcs.yml +++ b/playbooks/manual/upgrade/odcs.yml @@ -11,19 +11,14 @@ - import_tasks: "{{ handlers_path }}/restart_services.yml" tasks: - - name: clean all metadata {%if testing%}(with infrastructure-tags-stg on){%endif%} - command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%} + - name: clean all metadata + command: yum clean all check_mode: no - name: yum update odcs packages from main repo yum: name={{item}} state=latest when: not testing with_items: - odcs - - name: yum update odcs packages from testing repo - yum: name={{item}} state=latest enablerepo=infrastructure-tags-stg - when: testing - with_items: - - odcs - name: push packages out to backend hosts: odcs-backend:odcs-backend-stg @@ -38,19 +33,14 @@ - import_tasks: "{{ handlers_path }}/restart_services.yml" tasks: - - name: clean all metadata {%if testing%}(with infrastructure-tags-stg on){%endif%} - command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%} + - name: clean all metadata + command: yum clean all check_mode: no - name: yum update odcs packages from main repo yum: name={{item}} state=latest when: not testing with_items: - odcs - - name: yum update odcs packages from testing repo - yum: name={{item}} state=latest enablerepo=infrastructure-tags-stg - when: testing - with_items: - - odcs - name: verify the frontend and stop it hosts: odcs-frontend:odcs-frontend-stg