Infra-tags-stg is always enabled on staging machines

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-10-31 09:22:40 +00:00
parent a04b8ff097
commit f8d55e697b

View file

@ -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