mu
change
commit 674bf386e376b34e55dcfe2c8efd5d01122229e5
author Alpha Chen <alpha.chen@brilliant.org>
date
parent fcdaaaca
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: