Moved pre-install stuff (ansible, pip) to separate script
This commit is contained in:
parent
b206fc0864
commit
3e0500a452
@ -17,4 +17,9 @@ If Vagrant throws error about `vboxsf` try this:
|
||||
```
|
||||
vagrant plugin install vagrant-vbguest
|
||||
```
|
||||
(see https://github.com/shiguredo/packer-templates/issues/16).
|
||||
(see https://github.com/shiguredo/packer-templates/issues/16).
|
||||
|
||||
If you're rebuilding the same box, make sure Vagrant reimports it:
|
||||
```
|
||||
vagrant box remove solar-master
|
||||
```
|
7
bootstrap/playbooks/files/ubuntu-ansible.sh
Normal file
7
bootstrap/playbooks/files/ubuntu-ansible.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
apt-get remove -f python-pip
|
||||
sudo apt-get install -y python-setuptools
|
||||
sudo easy_install pip
|
||||
sudo pip install -U pip
|
||||
sudo pip install ansible
|
@ -9,13 +9,7 @@
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"sudo apt-get remove -f python-pip",
|
||||
"sudo apt-get install -y python-setuptools",
|
||||
"sudo easy_install pip",
|
||||
"sudo pip install -U pip",
|
||||
"sudo pip install ansible"
|
||||
]
|
||||
"script": "playbooks/files/ubuntu-ansible.sh"
|
||||
}, {
|
||||
"type": "ansible-local",
|
||||
"playbook_dir": "playbooks",
|
||||
|
Loading…
x
Reference in New Issue
Block a user