Skip to content

Commit 71149dc

Browse files
author
David Farrington
committed
Add VagrantFile, Inventory + update docs
1 parent 55e9dca commit 71149dc

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ postgresql_user_privileges:
4444
4545
There's a lot more knobs and bolts to set, which you can find in the defaults/main.yml
4646
47+
#### Testing
48+
This project comes with a VagrantFile, this is a fast and easy way to test changes to the role, fire it up with `vagrant up`
49+
50+
See [vagrant docs](https://docs.vagrantup.com/v2/) for getting setup with vagrant
4751

4852
#### License
4953

Vagrantfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure('2') do |config|
5+
config.vm.define 'anxs' do |c|
6+
c.vm.box = 'anxs-vbox-linux'
7+
c.vm.box_url = 'http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box'
8+
c.vm.network :private_network, ip: '192.168.88.3'
9+
c.vm.hostname = 'anxs.local'
10+
c.vm.provision 'ansible' do |ansible|
11+
ansible.playbook = 'test.yml'
12+
ansible.sudo = true
13+
ansible.inventory_path = 'vagrant-inventory'
14+
ansible.host_key_checking = false
15+
end
16+
end
17+
end

vagrant-inventory

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[anxs]
2+
anxs.local ansible_ssh_host=192.168.88.3 ansible_ssh_port=22

0 commit comments

Comments
 (0)