summaryrefslogtreecommitdiff
path: root/tasks/copy-rendered-templates-recursive.yml
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-09-13 17:47:23 -0700
committerElizabeth Hunt <me@liz.coffee>2025-09-13 17:47:23 -0700
commit88eed6b06b6780fb67413e90f57e55bdd3b6c81d (patch)
tree7b163b7b49ba1ad2665ad6e602213dca770512ec /tasks/copy-rendered-templates-recursive.yml
parentb0c0189066a486f9da4a048c7780dbc640031d27 (diff)
downloadinfra-88eed6b06b6780fb67413e90f57e55bdd3b6c81d.tar.gz
infra-88eed6b06b6780fb67413e90f57e55bdd3b6c81d.zip
Fix tasks permissionsHEADmain
Diffstat (limited to 'tasks/copy-rendered-templates-recursive.yml')
-rw-r--r--tasks/copy-rendered-templates-recursive.yml4
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
-