diff --git a/tasks/finalize/artefact.yml b/tasks/finalize/artefact.yml index 24c2411ae89d770244c47845fc13d032a8f37e7d..fc07ead37d9e39fb5193b06e2475be82b7fea6c2 100644 --- a/tasks/finalize/artefact.yml +++ b/tasks/finalize/artefact.yml @@ -3,7 +3,7 @@ - block: - - name: Set facts + - name: Set facts for updates set_fact: artefact_directories: - src: '{{ webRoot }}/drush/drush.yml' @@ -25,6 +25,25 @@ dest: '{{ tempDeployRoot }}-old' - src: '{{ tempDeployRoot }}' dest: '{{ webRoot }}' + when: not drupal_first_installation + + - name: Set facts first installation + set_fact: + artefact_directories: + - src: '{{ webRoot }}/files' + dest: '{{ tempDeployRoot }}/files' + reset: true + - src: '{{ webRoot }}/settings' + dest: '{{ tempDeployRoot }}/settings' + reset: true + - src: '{{ webRoot }}/web/sites/default' + dest: '{{ tempDeployRoot }}/web/sites/default' + reset: true + - src: '{{ webRoot }}' + dest: '{{ tempDeployRoot }}-old' + - src: '{{ tempDeployRoot }}' + dest: '{{ webRoot }}' + when: drupal_first_installation - name: Reset destination directories file: