From c7c2393bc06c0e49612e9d05e55c30028c02cd4a Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 27 Apr 2025 22:06:46 -0700 Subject: Fix when deployment dir doesn't yet exist on remote --- tasks/copy-rendered-templates-recursive.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tasks/copy-rendered-templates-recursive.yml') diff --git a/tasks/copy-rendered-templates-recursive.yml b/tasks/copy-rendered-templates-recursive.yml index e47c39c..0733493 100644 --- a/tasks/copy-rendered-templates-recursive.yml +++ b/tasks/copy-rendered-templates-recursive.yml @@ -41,6 +41,11 @@ path: "{{ tempdir.path }}" state: absent +- name: Ensure destination exists + ansible.builtin.file: + path: "{{ destination_dir }}" + state: directory + - name: Update remote files ansible.builtin.command: cmd: bash -c 'cp -r {{ tempdir.path }}/* {{ destination_dir }}/' -- cgit v1.2.3-70-g09d2