forked from dsander/vagrant-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile.sample
More file actions
24 lines (18 loc) · 868 Bytes
/
Vagrantfile.sample
File metadata and controls
24 lines (18 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'vagrant-ansible'
Vagrant::Config.run do |config|
config.vm.box = "oneiric32_base"
config.vm.box_url = "http://files.travis-ci.org/boxes/bases/oneiric32_base.box"
config.vm.customize ["modifyvm", :id, "--memory", "512"]
# This is only necessary if your CPU does not support VT-x or you run virtualbox
# inside virtualbox
config.vm.customize ["modifyvm", :id, "--vtxvpid", "off"]
# You can adjust this to the amount of CPUs your system has available
config.vm.customize ["modifyvm", :id, "--cpus", "1"]
config.vm.provision :ansible do |ansible|
# point Vagrant at the location of your playbook you want to run
ansible.playbook = "nginx-ubuntu.yml"
# the Vagrant VM will be put in this host group change this should
# match the host group in your playbook you want to test
ansible.hosts = "web-servers"
end
end