Home - learnyouansible/learnyouansible GitHub Wiki
Welcome to the learnyouansible wiki!
##General points:
- Emphasise declarative syntax - Maybe rerunning the playbook and getting "0 changes" can be used as a simple verification step? LearnYouNode has a nice commandline tool, but we want to focus on learning Ansible for now, rather than on building tools/platforms - that could come later?
##Suggested tasks:
###Task 1 In order to use Ansible we'll need at least one expendable server for each user to test against. The easiest way to do that is probably to set up Vagrant + a minimal box image e.g.
https://atlas.hashicorp.com/minimal/boxes/trusty64
64-bit Ubuntu Trusty (14.04.2 LTS) 397MB
or use vagrantbox to provision a server (with Ansible installed and configured).
###Subtasks:
- Install vagrant. Need to make sure it's a recent version
- Basic vagrant instructions:
init
,up
,destroy
etc
##Task 2
- Install Ansible. Need to make sure it's a recent version
##Task 3
- Create an initial vagrant+ansible install template
- Inventory file
- Playbook.yml
vagrant up
ansible ping
Possible References
- http://docs.ansible.com/guide_vagrant.html
- http://docs.vagrantup.com/v2/provisioning/ansible.html
- https://github.com/geerlingguy/ansible-vagrant-examples
##Task 4 - Finally doing some Ansible!
- Setting file system permissions?
##Task 5
- Installing packages (we'll need to focus on whatever distro we pick)
- Get a webserver running
Task 6
- Template files + variables
Task 7
- Roles?
Task n?
- Deploying a public git repo
- Deploying a private git repo you have access to using
ssh Forward Agent
- Multi-server setup