Add list of dotfiles to remove
This commit is contained in:
@@ -89,3 +89,4 @@ dotfiles:
|
|||||||
to: scripts
|
to: scripts
|
||||||
- from: helix/config.toml
|
- from: helix/config.toml
|
||||||
to: .config/helix/config.toml
|
to: .config/helix/config.toml
|
||||||
|
dotfiles_remove: []
|
||||||
|
|||||||
6
user.yml
6
user.yml
@@ -220,6 +220,12 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.to }}"
|
label: "{{ item.to }}"
|
||||||
|
|
||||||
|
- name: remove dotfiles
|
||||||
|
file:
|
||||||
|
state: absent
|
||||||
|
path: "/home/{{ user.name }}/{{ item }}"
|
||||||
|
loop: "{{ dotfiles_remove }}"
|
||||||
|
|
||||||
- name: create directories
|
- name: create directories
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
|
|||||||
Reference in New Issue
Block a user