From 8d688e54a1d68b2f02b397a193a05c5762e691d7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 2 May 2014 19:16:50 +0100 Subject: Add vagrant configuration with ansible provisioning --- tag-vagrant/vagrant.d/ansible/site.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tag-vagrant/vagrant.d/ansible/site.yml (limited to 'tag-vagrant/vagrant.d/ansible/site.yml') diff --git a/tag-vagrant/vagrant.d/ansible/site.yml b/tag-vagrant/vagrant.d/ansible/site.yml new file mode 100644 index 00000000..13384550 --- /dev/null +++ b/tag-vagrant/vagrant.d/ansible/site.yml @@ -0,0 +1,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 \ No newline at end of file -- cgit 1.4.1