From 674bf386e376b34e55dcfe2c8efd5d01122229e5 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Wed, 19 Oct 2022 16:15:07 -0700 Subject: [PATCH] mu --- dev/dotfiles.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/dev/dotfiles.yml b/dev/dotfiles.yml index fb78117..dd84f67 100644 --- a/dev/dotfiles.yml +++ b/dev/dotfiles.yml @@ -1,25 +1,16 @@ - hosts: all tasks: + - name: List dotfiles + shell: ls -A ~/.dotfiles | grep '^\.' + register: ls_dotfiles + - name: Symlink dotfiles file: src: ~/.dotfiles/{{ item }} dest: ~/{{ item }} state: link - loop: - - .config - - .gitconfig - - .hammerspoon - - .local - - .ssh - - .tmux.conf - - .zsh - - - name: Symlink Prezto - file: - src: ~/.dotfiles/.zprezto - dest: ~/.zprezto - state: link + loop: "{{ ls_dotfiles.stdout_lines | difference(['.git', '.gitmodules']) }}" - name: Symlink Prezto runcoms file: