[pagure/upgrade] Make httpd stop explicite.
I moved the httpd down from a pre task to where it is currently running so that it will not break. Signed-off-by: Stephen Smoogen <smooge@redhat.com>
This commit is contained in:
parent
809f5758ec
commit
4fd801d09d
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,6 @@
|
|||
host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
delegate_to: noc01.phx2.fedoraproject.org
|
||||
ignore_errors: true
|
||||
- service: name="httpd" state=stopped
|
||||
|
||||
tasks:
|
||||
- name: yum update pagure packages from main repo
|
||||
|
@ -44,6 +43,10 @@
|
|||
update_cache=yes
|
||||
when: testing
|
||||
|
||||
# This is needed so the alembic will work.
|
||||
- name: stop httpd so we can update the database
|
||||
service: name="httpd" state=stopped
|
||||
|
||||
- name: Upgrade the database
|
||||
command: /usr/bin/alembic -c /etc/pagure/alembic.ini upgrade head
|
||||
args:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue