[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:
Stephen Smoogen 2019-04-08 13:37:51 +00:00
parent 809f5758ec
commit 4fd801d09d

View file

@ -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: