summaryrefslogtreecommitdiff
path: root/tasks/copy-rendered-templates-recursive.yml
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-04-27 22:06:46 -0700
committerElizabeth Hunt <me@liz.coffee>2025-04-27 22:06:46 -0700
commitc7c2393bc06c0e49612e9d05e55c30028c02cd4a (patch)
tree082819cda63bcb71d3df5cc6ab921e50c21d83c0 /tasks/copy-rendered-templates-recursive.yml
parentdaef0cf448af17357b552245f39067a9d340ce3d (diff)
downloadinfra-c7c2393bc06c0e49612e9d05e55c30028c02cd4a.tar.gz
infra-c7c2393bc06c0e49612e9d05e55c30028c02cd4a.zip
Fix when deployment dir doesn't yet exist on remote
Diffstat (limited to 'tasks/copy-rendered-templates-recursive.yml')
-rw-r--r--tasks/copy-rendered-templates-recursive.yml5
1 files changed, 5 insertions, 0 deletions
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 }}/'