Skip to content

Commit

Permalink
Update default options
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Rey committed Nov 7, 2016
1 parent 68f404e commit 3ad7bd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tasks/attributes/file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
file:
path: "{{ item.path }}"
follow: "{{ item.follow|default(omit) }}"
recurse: "{{ item.recurse|default((item.state == 'directory')|ternary(true, omit)) }}"
recurse: "{{ item.recurse|default(omit) }}"
src: "{{ item.src|default(omit) }}"
force: "{{ item.force|default(omit) }}"
owner: "{{ item.user|default(omit) }}"
Expand Down
8 changes: 5 additions & 3 deletions tasks/attributes/link_directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
file:
path: "{{ item.src }}"
follow: "{{ item.follow|default(omit) }}"
recurse: "{{ item.recurse|default(true) }}"
recurse: "{{ item.recurse|default(omit) }}"
force: "{{ item.force|default(omit) }}"
owner: "{{ item.user|default(omit) }}"
group: "{{ item.group|default(omit) }}"
Expand All @@ -15,8 +15,10 @@
file:
path: "{{ item.path }}"
follow: "{{ item.follow|default(omit) }}"
recurse: "{{ item.recurse|default((item.state == 'directory')|ternary(true, omit)) }}"
recurse: "{{ item.recurse|default(omit) }}"
src: "{{ item.src|default(omit) }}"
force: true
force: "{{ item.mode|default(omit) }}"
owner: "{{ item.user|default(omit) }}"
group: "{{ item.group|default(omit) }}"
mode: "{{ item.mode|default(omit) }}"
state: link

0 comments on commit 3ad7bd4

Please sign in to comment.