Skip to content

Commit

Permalink
Allow directory trees in dotfiles lists
Browse files Browse the repository at this point in the history
  • Loading branch information
yn committed May 15, 2017
1 parent 25f02c9 commit faaea6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
when: "'@' not in item.1.stdout"
with_indexed_items: "{{ existing_dotfile_info.results }}"

- name: Ensure parent folders of link dotfiles exist.
file:
path: "{{ (dotfiles_home ~ '/' ~ item) | dirname }}"
state: directory
follow: yes
with_items: "{{ dotfiles_files }}"

- name: Link dotfiles into home folder.
file:
src: "{{ dotfiles_repo_local_destination }}/{{ item }}"
Expand Down

0 comments on commit faaea6f

Please sign in to comment.