add support to create symlinks
This commit is contained in:
parent
de7432a953
commit
fecf438ec6
2 changed files with 8 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
|||
owner: root
|
||||
mode: "0700"
|
||||
state: touch
|
||||
src: ~
|
||||
content: ~
|
||||
template: ~
|
||||
template_vars: {}
|
||||
|
|
@ -20,11 +21,13 @@
|
|||
group: "{{ file.group }}"
|
||||
owner: "{{ file.owner }}"
|
||||
mode: "{{ file.mode }}"
|
||||
src: "{{ file.src }}"
|
||||
state: "{{ file.state }}"
|
||||
|
||||
- name: create file/folder
|
||||
- name: create file/folder and set content
|
||||
when:
|
||||
- file.content
|
||||
- not file.src
|
||||
copy:
|
||||
dest: "{{ file.path }}"
|
||||
group: "{{ file.group }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue