Add list of dotfiles to remove

This commit is contained in:
2024-04-14 01:26:38 +02:00
parent 580bfd9e52
commit 4c5bb331d4
2 changed files with 7 additions and 0 deletions

View File

@@ -89,3 +89,4 @@ dotfiles:
to: scripts
- from: helix/config.toml
to: .config/helix/config.toml
dotfiles_remove: []

View File

@@ -220,6 +220,12 @@
loop_control:
label: "{{ item.to }}"
- name: remove dotfiles
file:
state: absent
path: "/home/{{ user.name }}/{{ item }}"
loop: "{{ dotfiles_remove }}"
- name: create directories
file:
state: directory