mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 06:20:26 +08:00
Infra-tags-stg is always enabled on staging machines
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user