forked from davestephens/ansible-nas
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
23 lines (21 loc) · 907 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
Vagrant.require_version ">= 2.2.2"
Vagrant.configure(2) do |config|
config.vm.define "nasible-test" do
config.vm.box = "ubuntu/focal64"
config.vm.network "private_network", ip: "172.30.1.5"
config.ssh.insert_key = false
config.vm.provision "ansible_local" do |ansible|
ansible.version = "latest"
ansible.compatibility_mode = "2.0"
ansible.galaxy_role_file = "requirements.yml"
ansible.galaxy_command = "sudo ansible-galaxy install --role-file=%{role_file} --roles-path=%{roles_path} --force && ansible-galaxy collection install -r=%{role_file} --force"
ansible.inventory_path = "tests/inventories/integration_testing/inventory"
ansible.playbook = "nas.yml"
ansible.become = true
ansible.verbose = "v"
ansible.raw_arguments = [
"--extra-vars @tests/inventories/integration_testing/group_vars/nas.yml"
]
end
end
end