-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
41 lines (30 loc) · 1.19 KB
/
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
39
40
41
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "debian/stretch64"
config.vm.network "forwarded_port", guest: 80, host: 8086
config.vm.provider "virtualbox" do |v|
v.name = "phplist-lamp-stack"
v.memory = 512
v.cpus = 1
v.linked_clone = true
v.gui = false
end
# The option config.vm.synced_folder with sync two folders between host and guest machine, uncomment to enable.
# config.vm.synced_folder "/path/to/folder/hostmachine", "/path/to/folder/guestmachine"
####### Provision #######
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "provision/playbook.yml"
ansible.install_mode = "pip"
ansible.version = "2.2.1.0"
ansible.verbose = true
end
config.vm.provision "shell", privileged: false, inline: <<-EOF
echo "Your phpList installation is finished"
echo "By default the phpList installation can be reached at http://127.0.0.1:8086/lists/admin"
EOF
end