Skip to content
Snippets Groups Projects
Verified Commit 13184fdc authored by psy's avatar psy
Browse files

copy file if file.src is given

parent f4687935
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
when:
- not file.content
- not file.template
- not file.src
file:
path: "{{ file.path }}"
group: "{{ file.group }}"
......@@ -31,3 +32,13 @@
owner: "{{ file.owner }}"
mode: "{{ file.mode }}"
content: "{{ file.content }}"
- name: create file/folder
when:
- file.src
copy:
dest: "{{ file.path }}"
group: "{{ file.group }}"
owner: "{{ file.owner }}"
mode: "{{ file.mode }}"
src: "{{ file.src }}"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment