Highlights
- Gain an introduction to Ansible
- Learn about the terminology and architecture of Ansible
- Deploy and install Ansible and run ad hoc commands
- Learn how to implement playbooks
- Write Ansible plays and execute a playbook
- Manage variables and inclusions
- Describe variable scope and precedence, manage variables and facts in a play, and manage inclusions
- Implement task control
- Manage task control, handlers and tags in Ansible playbooks
- Implement Jinja2 templates
- Implement roles
- Create and manage roles
- Configure complex playbooks
- Use Ansible to build, ship and run distributed applications on an open platform
Course Details
Introduce to Ansible
- Describe the terminology and architecture of Ansible.
- Deploy Ansible
- Install Ansible and run ad hoc commands.
- Implement playbooks
- Write Ansible plays and execute a playbook.
- Manage variables and inclusions
- Describe variable scope and precedence, manage variables and facts in a play, and manage inclusions.
- Implement task control
- Manage task control, handlers, and tags in Ansible playbooks.
- Implement Jinja2 templates
- Implement roles
- Create and manage roles.
- Configure complex playbooks
Ansible Terminology to be covered includes:
- Controller Machine: The machine where Ansible is installed, responsible for running the provisioning on the servers you are managing.
- Inventory: An initialization file that contains information about the servers you are managing.
- Playbook: The entry point for Ansible provisioning, where the automation is defined through tasks using YAML format.
- Task: A block that defines a single procedure to be executed, e.g. Install a package.
- Module: A module typically abstracts a system task, like dealing with packages or creating and changing files. Ansible has a multitude of built-in modules, but you can also create custom ones.
Cont ...
- Role: A pre-defined way for organizing playbooks and other files in order to facilitate sharing and reusing portions of a provisioning.
- Play: A provisioning executed from start to finish is called a play.
- In simple words, execution of a playbook is called a play.
- Facts: Global variables containing information about the system, like network interfaces or operating system.
- Handlers: Used to trigger service status changes, like restarting or stopping a service.
Who should attend
Feedback
4.8 out of 5 average
"Peter is a fantastic tutor, with a huge breadth of knowledge and very personable. The labs really help to reinforce the learning and the pacing was good"
FB, DevOps Engineer, Ansible, January 2021
“JBI did a great job of customizing their syllabus to suit our business needs and also bringing our team up to speed on the current best practices. Our teams varied widely in terms of experience and the Instructor handled this particularly well - very impressive”
Brian F, Team Lead, RBS, Data Analysis Course, 20 April 2022