-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
24 lines (23 loc) · 834 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
Vagrant.configure("2") do |config|
# Configurando a VM
config.vm.define:magnoUbuntu do |teste_config|
teste_config.vm.box = "ubuntu/focal64"
teste_config.vm.network "public_network", ip: "192.168.10.58"
#teste_config.vm.synced_folder "./data", "/vagrant_data"
teste_config.vm.synced_folder "./ansible/", "/tmp/ansible"
config.vm.hostname = "ubuntu-magno"
config.vm.provision "shell", inline: <<-SHELL
sudo apt update
sudo apt -y install vim curl telnet unzip wget net-tools htop nmap
sudo apt -y install ansible
sudo useradd magno
sudo ansible-playbook /tmp/ansible/playbook.yml
#sudo apt -y install nginx
SHELL
end
config.vm.provider "virtualbox" do |vb|
vb.name = "ubuntu-magno"
vb.memory = 2048
vb.cpus = 2
end
end