Skip to content

Commit 6a079e4

Browse files
committed
Better instructions, update to 17.10 Ubuntu.
1 parent 1175a85 commit 6a079e4

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,19 @@
22

33
My Linux environment configuration. Also has some Windows stuff using Chocolatey.
44

5-
Includes a number of Ansible roles to configure an Ubuntu 16.04 machine (for now).
5+
Includes a number of Ansible roles to configure an Ubuntu machine.
6+
7+
8+
## Creating the Ubuntu machine with Vagrant
9+
10+
1. Install vagrant
11+
2. Install the vbguest plugin with `vagrant plugin install vagrant-vbguest`
12+
3. `vagrant up`
13+
4. Wait awhile
14+
5. Run ansible once the machine is up on the guest with
15+
16+
```sh
17+
cd ansible
18+
ansible-galaxy install -r requirements.yml
19+
ansible-playbook -i localhost playbooks/main.yml
20+
```

Vagrantfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# vi: set ft=ruby :
33

44
Vagrant.configure(2) do |config|
5-
config.vm.box = "bento/ubuntu-16.04"
5+
config.vm.box = "bento/ubuntu-17.10"
66
config.vm.provider :virtualbox do |vb|
77
vb.memory = 4024
88
vb.gui = true
9-
vb.name = "Ubuntu 16.04 64-bit"
9+
vb.name = "Ubuntu 17.10 64-bit"
1010

1111
# modifyvm
1212
vb.customize [
@@ -33,11 +33,11 @@ Vagrant.configure(2) do |config|
3333

3434
# Install essentials
3535
config.vm.provision "shell", inline: <<-SHELL
36-
sudo apt -y update
36+
sudo apt-get -y update && sudo apt-get -y upgrade
3737
38-
sudo apt -y install linux-headers-generic build-essential dkms vim git unzip zsh \
38+
sudo apt-get -y install linux-headers-generic build-essential dkms vim git unzip zsh \
3939
virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 \
40-
python-pip
40+
python-pip ansible
4141
4242
SHELL
4343

0 commit comments

Comments
 (0)