summaryrefslogtreecommitdiff
path: root/tasks/copy-rendered-templates-recursive.yml
diff options
context:
space:
mode:
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
-