Skip to content

Commit

Permalink
Merge pull request #13 from yn/master
Browse files Browse the repository at this point in the history
Allow directory trees in dotfiles lists
  • Loading branch information
geerlingguy authored Dec 4, 2024
2 parents 89067b2 + 65ca3d1 commit fa83421
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
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: true
become: false
with_items: "{{ dotfiles_files }}"

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

0 comments on commit fa83421

Please sign in to comment.