diff --git a/tasks/main.yml b/tasks/main.yml index 04055c2..3d74453 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,6 +22,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 }}"