Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow directory trees in dotfiles lists #13

Merged
merged 4 commits into from
Dec 4, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: yes

Check warning on line 29 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

29:13 [truthy] truthy value should be one of [false, true]
become: no

Check warning on line 30 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

30:11 [truthy] truthy value should be one of [false, true]

Check failure on line 30 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

30:13 [trailing-spaces] trailing spaces
with_items: "{{ dotfiles_files }}"

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