tag-vagrant/vagrant.d/ansible/site.yml (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
- hosts: all
sudo: yes
vars:
packages:
- zsh
- htop
- lsof
- git
- rcm
tasks:
- include: centos.yml
when: ansible_distribution == "CentOS"
- include: debian.yml
when: ansible_distribution == "Debian"
- name: Ensure that dotfiles are checked out
sudo: no
git:
repo: git://github.com/alanpearce/dotfiles
dest: ~/dotfiles
update: yes
- name: Change shell to zsh
user:
name: vagrant
shell: /bin/zsh
- name: Install dotfiles
sudo: no
command: /usr/bin/rcup -d dotfiles -t zsh -t git -x README.org -x Brewfile -x LaunchAgents chdir=/home/vagrant |