Update koschei-stg from jenkins by default
This commit is contained in:
parent
4ebc104f82
commit
d832643029
1 changed files with 3 additions and 5 deletions
|
@ -4,8 +4,6 @@
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- /srv/private/ansible/vars.yml
|
- /srv/private/ansible/vars.yml
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
vars:
|
|
||||||
jenkins: False
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
roles:
|
roles:
|
||||||
|
@ -25,13 +23,13 @@
|
||||||
- koschei-watcher
|
- koschei-watcher
|
||||||
- httpd
|
- httpd
|
||||||
- name: clean yum metadata
|
- name: clean yum metadata
|
||||||
command: yum clean all {% if jenkins %} --enablerepo="koschei-jenkins" {% endif %}
|
command: yum clean all {% if env == 'staging' %} --enablerepo="koschei-jenkins" {% endif %}
|
||||||
- name: upgrade koschei package from jenkins
|
- name: upgrade koschei package from jenkins
|
||||||
yum: name="koschei" state=latest enablerepo="koschei-jenkins"
|
yum: name="koschei" state=latest enablerepo="koschei-jenkins"
|
||||||
when: jenkins
|
when: env == 'staging'
|
||||||
- name: upgrade koschei from main repo
|
- name: upgrade koschei from main repo
|
||||||
yum: name="koschei" state=latest
|
yum: name="koschei" state=latest
|
||||||
when: not jenkins
|
when: env != 'staging'
|
||||||
- name: run db migration
|
- name: run db migration
|
||||||
become: yes
|
become: yes
|
||||||
become_user: koschei
|
become_user: koschei
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue