From cd9453096e453638de879c93dba23adcc16a9b90 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 22 Jan 2021 01:11:47 +0000 Subject: [PATCH] Re-enable database updates on deployment --- tools/ansible/deploy/after-update-code.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/ansible/deploy/after-update-code.yml b/tools/ansible/deploy/after-update-code.yml index 3603ab8..4245e63 100644 --- a/tools/ansible/deploy/after-update-code.yml +++ b/tools/ansible/deploy/after-update-code.yml @@ -20,13 +20,13 @@ chdir={{ release_web_path }} changed_when: false -# - name: Run database updates -# command: > -# {{ release_drush_path }} -# updatedb -y -# chdir={{ release_web_path }} -# register: update_database_result -# changed_when: "'No pending updates' not in update_database_result.stderr" +- name: Run database updates + command: > + {{ release_drush_path }} + updatedb -y + chdir={{ release_web_path }} + register: update_database_result + changed_when: "'No pending updates' not in update_database_result.stderr" - name: Import configuration command: >