clean up meta/roles
change
commit 3706339194f768a29376a5c62b20f317eb7e3f71
author Alpha Chen <alpha@kejadlen.dev>
date
parent 023556b2
diff --git a/meta/roles/dotfiles/tasks/main.yml b/meta/roles/dotfiles/tasks/main.yml
deleted file mode 100644
index 62e81619..00000000
--- a/meta/roles/dotfiles/tasks/main.yml
+++ /dev/null
@@ -1,27 +0,0 @@
----
-- name: create config directories
-  file: path={{ item }} state=directory
-  with_items: "{{ conf_dirs }}"
-
-- name: symlink configs
-  file: src=~/.dotfiles/{{ item.key }} dest={{ item.value }} state=link
-  with_dict: "{{ conf_symlinks }}"
-
-# - name: force-symlink private configs
-#   file:
-#     src: ~/Dropbox/dotfiles/{{ item.key }}
-#     dest: "{{ item.value }}"
-#     state: link
-#     force: yes # Since these won't exist until later.
-#   with_dict: "{{ private_symlinks }}"
-
-- name: symlink SSH configs
-  file: src=~/.dotfiles/.ssh/{{ item | basename }} dest=~/.ssh/{{ item | basename }} state=link
-  with_fileglob: ~/.dotfiles/.ssh/*
-
-- name: symlink ~bin
-  file: src=~/.dotfiles/bin dest=~/bin state=link
-
-- name: symlink ~/.tmux.conf.local
-  file: src=~/.dotfiles/macos/.tmux.conf dest=~/.tmux.conf.local state=link
-  when: ansible_distribution == "MacOSX"
diff --git a/meta/roles/dotfiles/vars/main.yml b/meta/roles/dotfiles/vars/main.yml
deleted file mode 100644
index e3a00974..00000000
--- a/meta/roles/dotfiles/vars/main.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-conf_dirs:
-  - ~/.bundle
-  - ~/.ssh
-  - ~/.vim_tmp
-  - ~/.vim_undo
-
-conf_symlinks:
-  .bundle/config: ~/.bundle/config
-  .config: ~/.config
-  .gemrc: ~/.gemrc
-  .git_templates: ~/.git_templates
-  .gitconfig: ~/.gitconfig
-  .hammerspoon: ~/.hammerspoon
-  .pryrc: ~/.pryrc
-  .tmux.conf: ~/.tmux.conf
-  .vim: ~/.vim
-  .vimrc: ~/.vimrc
-  .zsh: ~/.zsh
-
-private_symlinks:
-  .gitconfig.private: ~/.gitconfig.private
diff --git a/meta/roles/macos/tasks/terminal.yml b/meta/roles/macos/tasks/terminal.yml
deleted file mode 100644
index 619fd3ef..00000000
--- a/meta/roles/macos/tasks/terminal.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-- name: import terminal profile
-  command: open ~/.dotfiles/macos/Alpha.terminal
-
-- name: set terminal profile to be the default
-  osx_defaults:
-    domain: com.apple.Terminal
-    key: "{{ item }} Window Settings"
-    type: string
-    value: Alpha
-  with_items:
-    - Default
-    - Startup
diff --git a/meta/roles/powerline/tasks/main.yml b/meta/roles/powerline/tasks/main.yml
deleted file mode 100644
index 43e6d4cd..00000000
--- a/meta/roles/powerline/tasks/main.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-- name: check if Powerline is already installed
-  shell: pip list | grep Powerline
-  ignore_errors: true
-  register: powerline_installed
-
-- name: install Powerline
-  command: >
-    pip
-      install
-      --user
-      --editable=~/.dotfiles/src/powerline
-  when: powerline_installed.failed
-
-- name: symlink Powerline configs
-  file: src={{ item }} dest=/usr/local/bin/{{ item | basename }} state=link
-  with_fileglob: ~/.dotfiles/src/powerline/scripts/*
diff --git a/meta/roles/ruby/tasks/main.yml b/meta/roles/ruby/tasks/main.yml
deleted file mode 100644
index aee1fafa..00000000
--- a/meta/roles/ruby/tasks/main.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-- name: install chruby
-  homebrew:
-    name:
-      - chruby
-      - ruby-install
-    state: present
-
-- name: install Ruby
-  command: ruby-install ruby creates=~/.rubies/ruby-*
diff --git a/meta/roles/server/files/znc/znc.service b/meta/roles/server/files/znc/znc.service
deleted file mode 100644
index 7efbddf7..00000000
--- a/meta/roles/server/files/znc/znc.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-Description=ZNC, an advanced IRC bouncer
-After=network-online.target
-
-[Service]
-ExecStart=/usr/bin/znc -f
-
-[Install]
-WantedBy=multi-user.target
diff --git a/meta/roles/server/tasks/main.yml b/meta/roles/server/tasks/main.yml
deleted file mode 100644
index ae63a8fe..00000000
--- a/meta/roles/server/tasks/main.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-- authorized_key:
-    user: alpha
-    state: present
-    key: "{{ lookup('file', '~/.ssh/pressure_drop_rsa.pub') }}"
-
-- name: apt update cache
-  apt: update_cache=yes
-  become: true
-- name: apt upgrade dist
-  apt: upgrade=dist
-  become: true
-- name: install/upgrade packages
-  apt: name={{ item }} state=present
-  become: true
-  with_items:
-    - libpam-systemd
-    - vim
-
-- file:
-    path: ~/.config/systemd/user
-    state: directory
-
-- import_tasks: znc.yml
diff --git a/meta/roles/server/tasks/znc.yml b/meta/roles/server/tasks/znc.yml
deleted file mode 100644
index eb246459..00000000
--- a/meta/roles/server/tasks/znc.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-- name: install/upgrade znc
-  apt: name=znc state=latest
-  become: true
-
-- name: znc config
-  copy:
-    src: znc/{{ item }}
-    dest: ~/.znc/{{ item | splitext | first }}
-  with_items:
-    - configs/znc.conf.private
-    - znc.pem.private
-
-- name: znc systemd
-  copy:
-    src: znc/znc.service
-    dest: ~/.config/systemd/user/znc.service
-
-- command: loginctl enable-linger {{ ansible_env.USER }}
-  become: true
-
-- name: restart znc
-  systemd:
-    name: znc
-    daemon_reload: yes
-    enabled: yes
-    state: restarted
-    user: yes
diff --git a/meta/roles/zsh/tasks/main.yml b/meta/roles/zsh/tasks/main.yml
deleted file mode 100644
index 24042618..00000000
--- a/meta/roles/zsh/tasks/main.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-- name: symlink ~/.zprezto
-  file:
-    src: "{{ ansible_env.HOME }}/.dotfiles/src/prezto"
-    dest: "{{ ansible_env.HOME}}/.zprezto"
-    state: link
-
-- name: get Prezto runcoms from dotfiles
-  shell: ls ~/.zprezto/runcoms | grep -v README.md
-  register: prezto_runcoms
-
-- name: symlink Prezto runcoms
-  file:
-    src: "{{ ansible_env.HOME }}/.zprezto/runcoms/{{ item }}"
-    dest: "{{ ansible_env.HOME}}/.{{ item }}"
-    state: link
-  with_items: "{{ prezto_runcoms.stdout_lines }}"
-
-- name: find where zsh is
-  command: which zsh
-  register: which_zsh
-
-- name: add zsh to /etc/shells
-  lineinfile: dest=/etc/shells line={{ which_zsh.stdout | trim }} state=present
-  become: yes
-
-- name: set the default user shell to zsh
-  user: name={{ ansible_env.USER }} shell={{ which_zsh.stdout | trim }}
-  become: yes