This is "life" based tutorial, how to start with Ansible.
I assume, you have some knowledge about Virtualenv and Vagrant,
if not, don't worry, all needed examples are explained.
The tutorial is organized in chapters. The point is, that each chapter has some new stuff, and all of them need to be "rewritten" to your project.
As the prerequisities, you need to have:
- virtualbox
- vagrant (2.1 or newer)
- ansible (2.8 or newer)
Vagrant is using Ubuntu18 (bionic64) in this tutorial. Important is, that this version has no Python installed. You need to do it by yourself.
Introduction Say hello to Ansible
Chapter 1 Environment preparation
Chapter 2 Run ansible in Vagrant box
Chapter 3 Add template
Chapter 4 Loops
Chapter 5 Conditionals
Chapter 6 Variables
Chapter 7 Ansible vault
Chapter 8 Prepare AWS ready environment
Chapter 9 Create first EC2 instance
Chapter 10 Customize EC2 task
Chapter 11 More customization!
Chapter 12 Provision ec2 instance
Chapter 13 Remove resources from AWS
Chapter 14 Useful commands
Chapter 15 Roles structure
Chapter 16 Ansible Galaxy
Chapter 17 Deeper look into the playbooks
Chapter 18 The good of Ansible is the bad
Chapter 19 The pros and the cons