copy file if file.src is given
This commit is contained in:
parent
f4687935ad
commit
13184fdcca
1 changed files with 11 additions and 0 deletions
|
|
@ -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 }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue