A simple Ansible setup to provision my EC2 instance.
Webserver Provision
A simple Ansible project to provision my webserver.Getting Started
- Install Ansible
- Install VirtualBox
- Install Vagrant
vagrant plugin install vagrant-hostsupdater
- Install GPG
- Install git-crypt
- Make sure the ~/.gnupg vault is setup - linked to Dropbox
- Unlock the encrypted files
git-crypt unlock
- Download the vagrant box for Ubuntu
wily-server-cloudimg-amd64-vagrant-disk1.box
- Add the box to vagrant
vagrant box add wily wily-server-cloudimg-amd64-vagrant-disk1.box
- If there are dependencies
ansible-galaxy install -r requirements.yml
- Run
vagrant up
Running It
- Ensure SSH is setup, check henrylawson.net readme for details
ansible-playbook playbook.yml -i hosts.gitcrypt
from https://github.com/henrylawson/webserver-provision
No comments:
Post a Comment