Automate your infrastructure in your data center and in the cloud
Slides are available here! Or check out slides.pdf in this repository for a copy as of 5/30.
Welcome to Deploying Applications with Ansible
, a live training hosted by O'Reilly Media and taught by James Meickle.
Ansible is a "batteries included" automation, configuration management, and orchestration tool that's fast to learn and flexible enough for any architecture. It's the perfect choice for automating repetitive tasks, increasing deployment frequency, and running infrastructure at scale. Companies are increasingly turning to Ansible to meet the challenges of transitioning from the data center to the cloud, from servers to containers, and from silos to devops. In this course you'll learn Ansible's key concepts and how to develop workflows that solve your challenges. The curriculum focuses on practical techniques, with an eye towards reusable and maintainable code. On completion you'll have enough hands-on experience with Ansible to feel comfortable using it in your own environment on a daily basis.
Day One:
- Cover course goals
- Introduce Ansible and its history
- Connect to training environment
- Ansible concepts:
- Modules
- Playbooks
- Roles
- Practice writing playbooks and roles
- Deploy a single-node web application
- Compare Ansible to other tools
Day Two:
- Advanced module and role tips
- Explore cloud-focused features
- Deploy a multi-tier, multi-instance application in AWS
- Discuss code quality for Ansible
- Develop a custom Ansible module
- Learn about the Ansible ecosystem
- Recap what we've learned and revisit course goals
Day One:
-
Use Case: Application Deployment: Why Ansible is valuable for application development.
-
How Ansible Works: This high-level document surveys Ansible's capabilities that we'll be examining in more depth.
-
YAML Syntax: We will be working with Ansible playbooks written in YAML, so please familiarize yourself with basic syntax.
-
All Modules: If you want to get an idea of Ansible's capabilities, you can skim through this list of all Ansible modules.
-
Finally, if Ansible is your first configuration management or automation tools, you may also benefit from viewing Introduction to Ansible, a Safari recorded training. This course will cover more material, but solid grasp of Ansible basics.
Day Two:
-
We will be discussing advanced tips and tricks for several key Ansible modules. You may wish to read the documentation in advance:
-
Since we will be writing more advanced playbooks and roles, you may want to learn more about the Jinja templating engine's capabilities:
-
This part of the course will interact with AWS, so you may be interested in reading Integration: Ansible and AWS or Amazon Web Services Guide.
Assuming this repository is checked out to ~/ansible
:
ansible.cfg
: Configuration file used when your current directory is ~/ansibleenvironments/aws
: Inventory directory selected via ~/ansible/ansible.cfgplaybooks
: Each YAML file is a playbookroles
: Each folder is a roleroles/requirements.yml
: For installing roles with ansible-galaxyfiles
: Static files used in playbookstemplates
: Jinja template files used in playbooks