Infra-tags-stg is always enabled on staging machines
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
a04b8ff097
commit
f8d55e697b
1 changed files with 4 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue