Pages

Thursday, 6 April 2017

A simple Ansible setup

A simple Ansible setup to provision my EC2 instance.

Webserver Provision

A simple Ansible project to provision my webserver.

Getting Started

  1. Install Ansible
  2. Install VirtualBox
  3. Install Vagrant
  4. vagrant plugin install vagrant-hostsupdater
  5. Install GPG
  6. Install git-crypt
  7. Make sure the ~/.gnupg vault is setup - linked to Dropbox
  8. Unlock the encrypted files git-crypt unlock
  9. Download the vagrant box for Ubuntu wily-server-cloudimg-amd64-vagrant-disk1.box
  10. Add the box to vagrant vagrant box add wily wily-server-cloudimg-amd64-vagrant-disk1.box
  11. If there are dependenciesansible-galaxy install -r requirements.yml
  12. Run vagrant up

Running It

  1. Ensure SSH is setup, check henrylawson.net readme for details
  2. ansible-playbook playbook.yml -i hosts.gitcrypt
  3.  
  4. from https://github.com/henrylawson/webserver-provision

No comments:

Post a Comment