Skip to content

Commit

Permalink
Some progress
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickocoffeyo committed Jun 6, 2017
1 parent 95c1b99 commit 5423710
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.retry
6 changes: 6 additions & 0 deletions galaxy_roles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# These roles are pulled from Ansible Galaxy, and are to be
# installed prior to executing this playbook.

- src: leonidas.nvm
- src: azavea.vagrant
- src: hubisan.virtualbox
11 changes: 11 additions & 0 deletions roles/cleanup/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: Clean out un-wanted packages.
apt: pkg={{ item }} state=absent purge=yes
become: yes
with_items:
- rhythmbox
- evolution
- evolution-common
- evolution-plugins
- gnome-weather
- gnome-maps
7 changes: 7 additions & 0 deletions roles/dotfiles/tasks/dotfiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Clone dotfile repositpry
git:
repo: https://github.com/patrickocoffeyo/dotfiles.git
dest: /home/{{ ansible_ssh_user }}/.dotfiles
update: yes
recursive: yes
11 changes: 11 additions & 0 deletions roles/dotfiles/tasks/fish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: Install Fish shell.
sudo: yes
apt:
name: fish
state: present

- name: Set Fish as the default shell.
user:
name: "{{ workstation_user }}"
shell: /usr/bin/fish
14 changes: 14 additions & 0 deletions roles/dotfiles/tasks/git.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
- name: Symlink .gitconfig
file:
src: /home/{{ ansible_ssh_user }}/.dotfiles/.gitconfig
dest: /home/{{ ansible_ssh_user }}/.gitconfig
state: link
owner: "{{ ansible_ssh_user }}"

- name: Symlink global .gitignore
file:
src: /home/{{ ansible_ssh_user }}/.dotfiles/.gitignore
dest: /home/{{ ansible_ssh_user }}/.gitignore
state: link
owner: "{{ ansible_ssh_user }}"
4 changes: 4 additions & 0 deletions roles/dotfiles/tasks/gnomeshell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- name: Generate Gnome Shell theme.
become: yes
script: /home/{{ ansible_ssh_user }}/.dotfiles/gnome-terminal-theme.sh
7 changes: 7 additions & 0 deletions roles/dotfiles/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- include: dotfiles.yml
- include: fish.yml
- include: vim.yml
- include: gnomeshell.yml
- include: git.yml

24 changes: 24 additions & 0 deletions roles/dotfiles/tasks/vim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
- name: Install vim.
apt:
name: vim
state: present

- name: Remove default vim user folder.
file:
path: /home/{{ ansible_ssh_user }}/.vim
state: absent

- name: Copy .vim directory.
file:
src: /home/{{ ansible_ssh_user }}/.dotfiles/.vim
dest: /home/{{ ansible_ssh_user }}/.vim
state: link
owner: "{{ ansible_ssh_user }}"

- name: Symlink .vimrc.
file:
src: /home/{{ ansible_ssh_user }}/.dotfiles/.vimrc
dest: /home/{{ ansible_ssh_user }}/.vimrc
state: link
owner: "{{ ansible_ssh_user }}"
10 changes: 10 additions & 0 deletions workstation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

- name: Workstation Setup (Ubuntu)
hosts: 127.0.0.1
connection: local
user: "{{ workstation_user }}"
roles:
- cleanup
- dotfiles

0 comments on commit 5423710

Please sign in to comment.