├── README.md └── playbook.yml /README.md: -------------------------------------------------------------------------------- 1 | ansible-hacker-playbook 2 | ======================= 3 | 4 | An [ansible](http://ansible.cc) playbook that sets up a tricked-out [zsh](http://zsh.org) & [vim](http://vim.org) environment. 5 | 6 | Features 7 | -------- 8 | 9 | - Installs [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh), A community-driven framework for managing your zsh configuration. 10 | - Installs [spf13-vim](http://vim.spf13.com), "The Ultimate Vim Distribution" 11 | 12 | Running 13 | ------- 14 | 15 | - `yum -y install ansible` 16 | - `systemctl start sshd` 17 | - `ansible-playbook --inventory 'localhost,' --ask-pass --ask-sudo-pass playbook.yml` 18 | 19 | Authors 20 | ------- 21 | - [Luke Macken](http://lewk.org) ([@lmacken](http://twitter.com/lmacken)) 22 | -------------------------------------------------------------------------------- /playbook.yml: -------------------------------------------------------------------------------- 1 | # An ansible playbook that sets up a tricked-out vim/zsh/tmux environment 2 | # 3 | # Author: Luke Macken 4 | --- 5 | 6 | - name: Bootstrapping developer environment 7 | hosts: all 8 | 9 | tasks: 10 | 11 | - name: Determining username 12 | action: shell whoami 13 | register: whoami 14 | sudo: False 15 | 16 | - name: Installing zsh, vim, git, tmux, etc. 17 | action: yum pkg=$item state=latest 18 | with_items: 19 | - zsh 20 | - vim-enhanced 21 | - git 22 | - tmux 23 | - htop 24 | 25 | - name: Changing the default shell to zsh 26 | action: user shell=/bin/zsh user=${whoami.stdout} 27 | 28 | - name: Entering Plugin Nirvana 29 | hosts: all 30 | sudo: False 31 | 32 | tasks: 33 | 34 | - name: Backing up existing ~/.zshrc 35 | action: shell if [ -f ~/.zshrc ]; then mv ~/.zshrc{,.orig}; fi 36 | 37 | - name: Installing oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh) 38 | action: git repo=https://github.com/robbyrussell/oh-my-zsh dest=~/.oh-my-zsh 39 | 40 | - name: Creating new ~/.zshrc 41 | action: shell cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc 42 | 43 | - name: Installing spf13-vim, The Ultimate Vim Distribution (http://vim.spf13.com) 44 | action: shell curl http://j.mp/spf13-vim3 -L -o - | sh 45 | --------------------------------------------------------------------------------