From 6e9738a7f22d406c27a75e2c3130e5b2e78461ce Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Sat, 23 Jan 2021 15:21:31 +0100 Subject: [PATCH] Fix finalize tasks in artefact mode --- tasks/finalize/artefact.yml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/tasks/finalize/artefact.yml b/tasks/finalize/artefact.yml index acb8c85..476a8db 100644 --- a/tasks/finalize/artefact.yml +++ b/tasks/finalize/artefact.yml @@ -1,16 +1,21 @@ --- # file: roles/drupal/tasks/finalize/artefact.yml -- name: Move directories - command: mv /path/to/foo /path/to/bar - with_items: - - src: '{{ webRoot }}/files' - dest: '{{ tempDeployRoot }}' - - src: '{{ webRoot }}/settings' - dest: '{{ tempDeployRoot }}' - - src: '{{ webRoot }}/web/sites/default' - dest: '{{ tempDeployRoot }}/web/sites' - - src: '{{ webRoot }}' - dest: '{{ webRoot }}-old' - - src: '{{ tempDeployRoot }}' - dest: '{{ webRoot }}' +- block: + + - name: Move directories + command: mv /path/to/foo /path/to/bar + with_items: + - src: '{{ webRoot }}/files' + dest: '{{ tempDeployRoot }}' + - src: '{{ webRoot }}/settings' + dest: '{{ tempDeployRoot }}' + - src: '{{ webRoot }}/web/sites/default' + dest: '{{ tempDeployRoot }}/web/sites' + - src: '{{ webRoot }}' + dest: '{{ webRoot }}-old' + - src: '{{ tempDeployRoot }}' + dest: '{{ webRoot }}' + + tags: + - deploy -- GitLab