-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
32 lines (31 loc) · 1.18 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "smw" do |smw|
smw.vm.box = "debian/buster64"
smw.ssh.insert_key = false
smw.vm.hostname = "smw.box"
smw.vm.synced_folder ".", "/vagrant", create: true, disabled: false
smw.vm.network :private_network, ip: "192.168.60.120"
smw.vm.provider :virtualbox do |vb|
vb.name = "smw_box"
vb.memory = 4096
vb.cpus = 2
end
end
config.vm.provision "ansible_local" do |ansible|
ansible.install = true
ansible.version = "latest"
ansible.compatibility_mode = "2.0"
ansible.install_mode = "pip_args_only"
ansible.pip_install_cmd = "sudo apt install -y python3-distutils && curl https://bootstrap.pypa.io/get-pip.py | sudo python3"
ansible.pip_args = "ansible==2.10.7"
ansible.playbook = "ansible/playbook.yml"
ansible.inventory_path = "hosts-box.yml"
ansible.verbose = "false"
ansible.config_file = "ansible/ansible.cfg"
ansible.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
# ansible.start_at_task = "touch composer.local.json file"
# ansible.tags = "mw" # limit playbook execution to tag
end
end