From 4c5bb331d46618a84e60b7af0d93d40200b51a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 14 Apr 2024 01:26:38 +0200 Subject: [PATCH] Add list of dotfiles to remove --- dotfiles.yml | 1 + user.yml | 6 ++++++ 2 files changed, 7 insertions(+) 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