ansible taste-test example
This is 'more-or-less' the first example from the taste-test book which you should buy and read.
- Create 3 Digital Ocean virtual machines [ droplets ]
- Configure them for Ubuntu
- Set there hostname dod-master, dod-puppy, dod-kitty. Notes: dod stands for DigitalOceanDroplet and puppy and kitty are nodes.
- Upload your ssh key's, via Digital-oceans machine creation interface.
- Manage
/etc/hosts
, and~/.ssh/config
so that you can ssh to each machine without passwords and so that dod-master can ssh to the other 2 machines without passwords.
5: finally make sure there are no firewall restrictionsiptables --list --numeric
Setup ansible on dod-master
$ apt-get update
$ apt-get install python-software-properties -y
$ add-apt-repository ppa:rquillo/ansible -y
or
$ apt-add-repository -y ppa:ansible/ansible
$ apt-get update
$ apt-get install ansible -y
$ apt-get install git -y
Fianlly you are ready to provision your nodes.
- Pull this repository in the dod-master machine
- move its contents to ~/
ansible-playbook taste.yml