From 4fd801d09d828d9b5576b98c419b9bccfbfd5f39 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Mon, 8 Apr 2019 13:37:51 +0000 Subject: [PATCH] [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 --- playbooks/manual/upgrade/pagure.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playbooks/manual/upgrade/pagure.yml b/playbooks/manual/upgrade/pagure.yml index d03c68040e..ccaae8bbb0 100644 --- a/playbooks/manual/upgrade/pagure.yml +++ b/playbooks/manual/upgrade/pagure.yml @@ -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: