mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-27 20:12:54 +08:00
Update the pagure upgrade playbook to make it up to date
This commit is contained in:
@@ -39,11 +39,6 @@
|
||||
update_cache=yes
|
||||
when: testing
|
||||
|
||||
- name: Create new tables in the database
|
||||
command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py
|
||||
environment:
|
||||
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
||||
|
||||
- name: Upgrade the database
|
||||
command: /usr/bin/alembic -c /etc/pagure/alembic.ini upgrade head
|
||||
args:
|
||||
@@ -51,12 +46,20 @@
|
||||
environment:
|
||||
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
||||
|
||||
- name: call createdb
|
||||
command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py
|
||||
environment:
|
||||
PAGURE_CONFIG: /etc/pagure/pagure.cfg
|
||||
|
||||
post_tasks:
|
||||
- service: name="httpd" state=restarted
|
||||
- service: name="pagure_ev" state=restarted
|
||||
- service: name="pagure_ci" state=restarted
|
||||
- service: name="pagure_webhook" state=restarted
|
||||
- service: name="pagure_milter" state=restarted
|
||||
- service: name="pagure_worker" state=restarted
|
||||
- service: name="pagure_logcom" state=restarted
|
||||
- service: name="pagure_loadjson" state=restarted
|
||||
- name: tell nagios to unshush w.r.t. the frontend
|
||||
nagios:
|
||||
action=unsilence
|
||||
|
||||
Reference in New Issue
Block a user