summary refs log tree commit diff stats
path: root/vagrant/.vagrant.d/ansible/site.yml
diff options
context:
space:
mode:
authorAlan Pearce2017-03-24 21:22:27 +0100
committerAlan Pearce2017-03-24 21:22:27 +0100
commitbbb26322199d41171595bff6d073bda1fa1fa62c (patch)
tree799f160f60327a1b026fd9f4065636e611ccafb0 /vagrant/.vagrant.d/ansible/site.yml
parent0c4343e413bbc922954b417a639c60dfa007a0da (diff)
parent53f50286e177abb9d1ac4a7c239dcbcc3fed63b7 (diff)
downloadnixfiles-bbb26322199d41171595bff6d073bda1fa1fa62c.tar.lz
nixfiles-bbb26322199d41171595bff6d073bda1fa1fa62c.tar.zst
nixfiles-bbb26322199d41171595bff6d073bda1fa1fa62c.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'vagrant/.vagrant.d/ansible/site.yml')
-rw-r--r--vagrant/.vagrant.d/ansible/site.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/vagrant/.vagrant.d/ansible/site.yml b/vagrant/.vagrant.d/ansible/site.yml
new file mode 100644
index 00000000..13384550
--- /dev/null
+++ b/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