This workshop is aimed at using resources available on the web so that you will be confident in using the resources, what to look for when building an Ansible managed infrastructure and writing Ansible playbooks and roles.

We will start right from the beginning, of how to work with Ansible playbooks on the system you wish to provision so that you will become familiar with writing playbooks, and then progressing to creating an orchestrated infrastructure to provision and manage your environment. You will also be able to understand how to create and use environments as well as making use of Ansible for provisioning AWS AMIs.

ON COMPLETION

  • Install Ansible
  • Create and manage playbooks
  • Work with single and structured playbooks
  • Use Ansible modules and Galaxy
  • Work with variables and defaults
  • Work with different environments, such as Dev and Prod
  • Manage your infrastructure with Ansible orchestration commands

WHO SHOULD ATTEND?

You should have a working knowledge of;

  • Unix/Linux operating systems command line
  • SSH use and key management
  • Installing software on Linux apt/yum/dnf
  • Editing files on Linux
  • Git

COURSE WORK

The course is designed to be majority hands on, guiding you through the build of an Ansible server to provision and manage existing hosts in a predefined network. You will also create playbooks to run against different server configurations, as well as being able to manage servers using ad-hoc Ansible commands.

DURATION: 3 DAYS

PRICE: Please call for latest

Timing: Start 9:30am - Finish 5:00pm

Environment: Virtual Machine images and set up can be provided. Alternatively training can be performed in your own environment. Use of our cloud please call for pricing, and provide number of students.

COURSE CONTENT

What is Ansible

Understand what Ansible is and why you would use it, install a controller.

Ansible controller

Using the **ansible** command to perform tasks on your servers, and being able to target individual or groups of servers, and configure your controller.

Ansible playbooks

Learn how to construct single file playbooks, covering all aspects of provisioning your servers to be managed. Make use of static content and dynamic content.

Next level playbooks

Work and use different types of variables such as static, runtime, inventory, facts. Working with control structures for looping and conditional task execution. Dealing with exceptions.

Role and Sites

Here you will learn how to turn a playbook into a role, create environments and move from inventory file to inventory directories. Understand more complex roles and work 3rd party roles.

More inventory

Work with sensitive data, using Ansible Vault and updating inventory state at runtime.

Working with APIs

In this module you will make use of dynamic variable from earlier, and enable Ansible to obtain data from 3rd party web APIs.

Project

In this module you will create more playbooks and apply them to your infrastructure.

Ansible CI/CD (optional part of project)

In this module you will see an example of how to connect Ansible with a CI/CD system to test your playbooks sanity and to execute deployments through automation.