diff options
Diffstat (limited to 'tasks/copy-rendered-templates-recursive.yml')
-rw-r--r-- | tasks/copy-rendered-templates-recursive.yml | 5 |
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 }}/' |