diff --git a/dotfiles.yml b/dotfiles.yml index 0fbe737..0fcd6e3 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -89,3 +89,4 @@ dotfiles: to: scripts - from: helix/config.toml to: .config/helix/config.toml +dotfiles_remove: [] diff --git a/user.yml b/user.yml index b0bea53..3ae4317 100644 --- a/user.yml +++ b/user.yml @@ -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