[meta] Cleanup
change
commit 33b68b9dabb765473496d71fd68a0be491422dfe
author Alpha Chen <alpha.chen@gmail.com>
date
parent 1368fda5
diff --git a/ansible/roles/dotfiles/tasks/main.yml b/ansible/roles/dotfiles/tasks/main.yml
index 4d1e1ea4..3d74fce0 100644
--- a/ansible/roles/dotfiles/tasks/main.yml
+++ b/ansible/roles/dotfiles/tasks/main.yml
@@ -1,6 +1,6 @@
 ---
 - homebrew: name=stow
-- git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles force=no
+# - git: repo=https://github.com/kejadlen/dotfiles.git dest=~/.dotfiles force=no
 - command: >
     chdir={{ ansible_env.HOME }}/.dotfiles
     stow --stow --target={{ ansible_env.HOME }} {{ item }}
diff --git a/ansible/setup.yml b/ansible/setup.yml
deleted file mode 100644
index 4d723eee..00000000
--- a/ansible/setup.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-- hosts: test
-  sudo: True
-  tasks:
-  - name: apt-get update
-    apt: update_cache=yes
diff --git a/ansible/setup_ssh_keys.rb b/ansible/setup_ssh_keys.rb
deleted file mode 100644
index 8d26af9b..00000000
--- a/ansible/setup_ssh_keys.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-require 'fileutils'
-
-include FileUtils
-
-def with_mount(image)
-  out = `hdiutil mount #{image}`
-  mountpoint = out.split(/\s+/).last
-  yield(mountpoint)
-ensure
-  puts `hdiutil unmount #{mountpoint}`
-end
-
-cd File.expand_path('~/.ssh')
-
-with_mount "~/Dropbox/sekritz.sparseimage" do |mountpoint|
-  Dir["#{mountpoint}/ssh keys/*"].each do |file|
-    cp file, File.basename(file)
-    puts `chmod go-r #{File.basename(file)}`
-    puts `ssh-add -K #{File.basename(file)}`
-  end
-end
diff --git a/scripts/setup_ssh_keys.rb b/scripts/setup_ssh_keys.rb
deleted file mode 100644
index dffc6da2..00000000
--- a/scripts/setup_ssh_keys.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-require 'fileutils'
-
-include FileUtils
-
-def with_mount(image)
-  out = `hdiutil mount #{image}`
-  mountpoint = out.split(/\s+/).last
-  yield(mountpoint)
-ensure
-  puts `hdiutil unmount #{mountpoint}`
-end
-
-cd File.expand_path('~/.ssh')
-
-with_mount "~/Dropbox/sekritz.sparseimage" do |mountpoint|
-  from = Dir["#{mountpoint}/ssh keys/*"]
-  to = from.map {|file| File.basename(file) }
-  from.zip(to).each do |from, to|
-    next if File.exist?(to)
-
-    cp from, to
-    puts `chmod go-r #{to}`
-    puts `ssh-add -K #{to}`
-  end
-end