From d063fbff02867ba87168ea35a852d161689520f7 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sat, 18 Mar 2017 05:35:47 +0100
Subject: [PATCH] In ansible attempt, differentiate symlink file directories.

---
 ansible/config.yml                                       | 9 +++++++--
 .../files/{ => console}/___etc___default___console-setup | 0
 ansible/files/{ => console}/___etc___default___keyboard  | 0
 ansible/{ => files}/dotfiles/bashrc                      | 0
 ansible/{ => files}/dotfiles/gitconfig                   | 0
 ansible/{ => files}/dotfiles/profile                     | 0
 ansible/{ => files}/dotfiles/shinit                      | 0
 ansible/{ => files}/dotfiles/shinit_color                | 0
 ansible/{ => files}/dotfiles/vimrc                       | 0
 ansible/{ => files}/dotfiles/vimrc_add                   | 0
 .../{ => system}/___etc___apt___apt.conf.d___99mindeps   | 0
 ansible/files/{ => system}/___etc___apt___sources.list   | 0
 ansible/files/{ => system}/___etc___hostname             | 0
 ansible/files/{ => system}/___etc___hosts                | 0
 ansible/files/{ => system}/___etc___profile              | 0
 ansible/files/{ => system}/___etc___timezone             | 0
 16 files changed, 7 insertions(+), 2 deletions(-)
 rename ansible/files/{ => console}/___etc___default___console-setup (100%)
 rename ansible/files/{ => console}/___etc___default___keyboard (100%)
 rename ansible/{ => files}/dotfiles/bashrc (100%)
 rename ansible/{ => files}/dotfiles/gitconfig (100%)
 rename ansible/{ => files}/dotfiles/profile (100%)
 rename ansible/{ => files}/dotfiles/shinit (100%)
 rename ansible/{ => files}/dotfiles/shinit_color (100%)
 rename ansible/{ => files}/dotfiles/vimrc (100%)
 rename ansible/{ => files}/dotfiles/vimrc_add (100%)
 rename ansible/files/{ => system}/___etc___apt___apt.conf.d___99mindeps (100%)
 rename ansible/files/{ => system}/___etc___apt___sources.list (100%)
 rename ansible/files/{ => system}/___etc___hostname (100%)
 rename ansible/files/{ => system}/___etc___hosts (100%)
 rename ansible/files/{ => system}/___etc___profile (100%)
 rename ansible/files/{ => system}/___etc___timezone (100%)

diff --git a/ansible/config.yml b/ansible/config.yml
index 3afcbf7..b34b529 100644
--- a/ansible/config.yml
+++ b/ansible/config.yml
@@ -6,7 +6,7 @@
 
   - name: symlink system files
     file: state=link force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}
-    with_fileglob: ~/config/ansible/files/*
+    with_fileglob: ~/config/ansible/files/system/*
   - name: set hostname for current session
     shell: hostname w530
 
@@ -23,6 +23,9 @@
     apt: upgrade=dist
 
   # Configure console.
+  - name: symlink console config files
+    file: state=link force=yes src={{item}} dest={{item|basename|regex_replace('___','/')}}
+    with_fileglob: ~/config/ansible/files/console/*
   - name: ensure locales and console-setup are installed
     apt: name={{item}} state=present
     with_items:
@@ -36,7 +39,9 @@
   # Miscellaneous.
   - name: Ensure dotfile symlinks
     file: state=link force=yes src={{item}} dest=~/.{{item|basename}}
-    with_fileglob: ~/config/ansible/dotfiles/*
+    with_fileglob: ~/config/ansible/files/dotfiles/*
+  - name: ensure ~/.vimbackups directory
+    file: state=directory dest=~/.vimbackups
   - name: ensure man-db, manpages is installed
     apt: name={{item}} state=present
     with_items:
diff --git a/ansible/files/___etc___default___console-setup b/ansible/files/console/___etc___default___console-setup
similarity index 100%
rename from ansible/files/___etc___default___console-setup
rename to ansible/files/console/___etc___default___console-setup
diff --git a/ansible/files/___etc___default___keyboard b/ansible/files/console/___etc___default___keyboard
similarity index 100%
rename from ansible/files/___etc___default___keyboard
rename to ansible/files/console/___etc___default___keyboard
diff --git a/ansible/dotfiles/bashrc b/ansible/files/dotfiles/bashrc
similarity index 100%
rename from ansible/dotfiles/bashrc
rename to ansible/files/dotfiles/bashrc
diff --git a/ansible/dotfiles/gitconfig b/ansible/files/dotfiles/gitconfig
similarity index 100%
rename from ansible/dotfiles/gitconfig
rename to ansible/files/dotfiles/gitconfig
diff --git a/ansible/dotfiles/profile b/ansible/files/dotfiles/profile
similarity index 100%
rename from ansible/dotfiles/profile
rename to ansible/files/dotfiles/profile
diff --git a/ansible/dotfiles/shinit b/ansible/files/dotfiles/shinit
similarity index 100%
rename from ansible/dotfiles/shinit
rename to ansible/files/dotfiles/shinit
diff --git a/ansible/dotfiles/shinit_color b/ansible/files/dotfiles/shinit_color
similarity index 100%
rename from ansible/dotfiles/shinit_color
rename to ansible/files/dotfiles/shinit_color
diff --git a/ansible/dotfiles/vimrc b/ansible/files/dotfiles/vimrc
similarity index 100%
rename from ansible/dotfiles/vimrc
rename to ansible/files/dotfiles/vimrc
diff --git a/ansible/dotfiles/vimrc_add b/ansible/files/dotfiles/vimrc_add
similarity index 100%
rename from ansible/dotfiles/vimrc_add
rename to ansible/files/dotfiles/vimrc_add
diff --git a/ansible/files/___etc___apt___apt.conf.d___99mindeps b/ansible/files/system/___etc___apt___apt.conf.d___99mindeps
similarity index 100%
rename from ansible/files/___etc___apt___apt.conf.d___99mindeps
rename to ansible/files/system/___etc___apt___apt.conf.d___99mindeps
diff --git a/ansible/files/___etc___apt___sources.list b/ansible/files/system/___etc___apt___sources.list
similarity index 100%
rename from ansible/files/___etc___apt___sources.list
rename to ansible/files/system/___etc___apt___sources.list
diff --git a/ansible/files/___etc___hostname b/ansible/files/system/___etc___hostname
similarity index 100%
rename from ansible/files/___etc___hostname
rename to ansible/files/system/___etc___hostname
diff --git a/ansible/files/___etc___hosts b/ansible/files/system/___etc___hosts
similarity index 100%
rename from ansible/files/___etc___hosts
rename to ansible/files/system/___etc___hosts
diff --git a/ansible/files/___etc___profile b/ansible/files/system/___etc___profile
similarity index 100%
rename from ansible/files/___etc___profile
rename to ansible/files/system/___etc___profile
diff --git a/ansible/files/___etc___timezone b/ansible/files/system/___etc___timezone
similarity index 100%
rename from ansible/files/___etc___timezone
rename to ansible/files/system/___etc___timezone
-- 
2.30.2