From 4e8c464dc826141da39b9c4d26f9c01be0da7659 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 21 Aug 2020 12:06:24 +0100 Subject: [PATCH] Re-order deployment steps Ensure that the configuration import is run before the database updates, so that any new fields are created that are needed within the update steps such as `field_type` on the talk node type. --- 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 9f1f679..01ecc09 100644 --- a/tools/ansible/deploy/after-update-code.yml +++ b/tools/ansible/deploy/after-update-code.yml @@ -16,6 +16,13 @@ chdir={{ release_web_path }} changed_when: false +- name: Import configuration + command: > + {{ release_drush_path }} config-import -y + chdir={{ release_web_path }} + register: config_import_result + changed_when: "'There are no changes to import' not in config_import_result.stderr" + - name: Run database updates command: > {{ release_drush_path }} @@ -24,11 +31,4 @@ register: update_database_result changed_when: "'No pending updates' not in update_database_result.stderr" -- name: Import configuration - command: > - {{ release_drush_path }} config-import -y - chdir={{ release_web_path }} - register: config_import_result - changed_when: "'There are no changes to import' not in config_import_result.stderr" - - include: ../includes/build-theme-assets.yml