diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-09-13 17:47:23 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-09-13 17:47:23 -0700 |
commit | 88eed6b06b6780fb67413e90f57e55bdd3b6c81d (patch) | |
tree | 7b163b7b49ba1ad2665ad6e602213dca770512ec /tasks/copy-rendered-templates-recursive.yml | |
parent | b0c0189066a486f9da4a048c7780dbc640031d27 (diff) | |
download | infra-88eed6b06b6780fb67413e90f57e55bdd3b6c81d.tar.gz infra-88eed6b06b6780fb67413e90f57e55bdd3b6c81d.zip |
Diffstat (limited to 'tasks/copy-rendered-templates-recursive.yml')
-rw-r--r-- | tasks/copy-rendered-templates-recursive.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks/copy-rendered-templates-recursive.yml b/tasks/copy-rendered-templates-recursive.yml index 57322cd..b255fab 100644 --- a/tasks/copy-rendered-templates-recursive.yml +++ b/tasks/copy-rendered-templates-recursive.yml @@ -85,12 +85,14 @@ recursive: true - name: Ensure destination exists + become: true ansible.builtin.file: path: "{{ destination_dir }}" owner: "{{ owner }}" state: directory - name: Copy files to final destination, preserving ownership stuff + become: true ansible.builtin.command: cmd: bash -c 'cp -rp {{ tempdir.path }}/* {{ destination_dir }}/' @@ -102,7 +104,7 @@ state: absent - name: Remove remote temporary directory + become: true ansible.builtin.file: path: "{{ tempdir.path }}" state: absent - |