forked from weareinteractive/ansible-apache2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
38 lines (32 loc) · 856 Bytes
/
Vagrantfile
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
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<-SCRIPT
if [ -x "$(command -v apt-get)" ]; then
apt-get update
apt-get install -y python
elif [ -x "$(command -v yum)" ]; then
// yum install ...
else
// printenv
fi
echo "done"
SCRIPT
Vagrant.configure("2") do |config|
config.vbguest.no_remote = true
config.vbguest.auto_update = false
config.vm.define 'xenial' do |instance|
instance.vm.box = 'ubuntu/xenial64'
end
config.vm.define 'trusty' do |instance|
instance.vm.box = 'ubuntu/trusty64'
end
# install dependencies
config.vm.provision "shell", inline: $script
# View the documentation for the provider you're using for more
# information on available options.
config.vm.provision "ansible" do |ansible|
ansible.playbook = "tests/main.yml"
ansible.verbose = 'vv'
ansible.sudo = true
end
end