Skip to content
Snippets Groups Projects
Verified Commit b68cccba authored by nd's avatar nd
Browse files

Revert "add symlink support"

This reverts commit 0d76b49a.
parent 4d3cef28
Branches
No related tags found
No related merge requests found
...@@ -8,12 +8,11 @@ ...@@ -8,12 +8,11 @@
content: ~ content: ~
template: ~ template: ~
template_vars: {} template_vars: {}
src: ~
- set_fact: - set_fact:
file: "{{ defaultfile|combine(item.value|d({}), {'path': item.key} ) }}" file: "{{ defaultfile|combine(item.value|d({}), {'path': item.key} ) }}"
- name: create file/folder (file) - name: create file/folder
when: when:
- not file.content - not file.content
- not file.template - not file.template
...@@ -26,7 +25,7 @@ ...@@ -26,7 +25,7 @@
src: "{{ file.src }}" src: "{{ file.src }}"
state: "{{ file.state }}" state: "{{ file.state }}"
- name: create file/folder (copy content) - name: create file/folder
when: when:
- file.content - file.content
- not file.src - not file.src
...@@ -37,25 +36,12 @@ ...@@ -37,25 +36,12 @@
mode: "{{ file.mode }}" mode: "{{ file.mode }}"
content: "{{ file.content }}" content: "{{ file.content }}"
- name: create file/folder (copy src) - name: create file/folder
when: when:
- file.src - file.src
- file.state != "link"
copy: copy:
dest: "{{ file.path }}" dest: "{{ file.path }}"
group: "{{ file.group }}" group: "{{ file.group }}"
owner: "{{ file.owner }}" owner: "{{ file.owner }}"
mode: "{{ file.mode }}" mode: "{{ file.mode }}"
src: "{{ file.src }}" src: "{{ file.src }}"
\ No newline at end of file
- name: create file/folder (symlink)
when:
- file.src
- file.state == "link"
file:
path: "{{ file.path }}"
group: "{{ file.group }}"
owner: "{{ file.owner }}"
mode: "{{ file.mode }}"
state: "{{ file.state }}"
src: "{{ file.src }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment