-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
executable file
·26 lines (25 loc) · 997 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
Vagrant.configure("2") do |config|
config.vm.define :wikijs do |wikijs|
wikijs.vm.box = "bento/ubuntu-20.04"
wikijs.vm.network "private_network", ip: "192.168.1.40"
wikijs.vm.network "forwarded_port", guest: 3000, host: 3000
wikijs.vm.hostname = "wikijs"
wikijs.vm.synced_folder ".", "/vagrant", disabled: true
wikijs.vm.provision "shell", inline: <<-SHELL
sudo apt-get update -y
sudo apt-get install python-apt -y
SHELL
end
config.vm.define :ansible do |ansible|
ansible.vm.box = "bento/ubuntu-20.04"
ansible.vm.network "private_network", ip: "192.168.1.50"
ansible.vm.hostname = "ansible"
ansible.vm.provision "shell", inline: <<-SHELL
sudo apt-get update -y
sudo apt-get install software-properties-common -y
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install ansible -y
sudo ansible-galaxy collection install community.general
SHELL
end
end