add support to set file content
This commit is contained in:
parent
9641e5a2f7
commit
ed5d4458fc
1 changed files with 10 additions and 0 deletions
|
|
@ -21,3 +21,13 @@
|
|||
owner: "{{ file.owner }}"
|
||||
mode: "{{ file.mode }}"
|
||||
state: "{{ file.state }}"
|
||||
|
||||
- name: create file/folder
|
||||
when:
|
||||
- file.content
|
||||
copy:
|
||||
dest: "{{ file.path }}"
|
||||
group: "{{ file.group }}"
|
||||
owner: "{{ file.owner }}"
|
||||
mode: "{{ file.mode }}"
|
||||
content: "{{ file.content }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue