diff --git a/tasks/main.yml b/tasks/main.yml index 048ce02..cec3dc9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 }}"