Course programme
Mastering Ansible
35 lectures 11:28:28
Mastering Ansible - The Course Overview
This video will give you an overview about the course.
Ansible Requirements – Python, PIP, and Virtual Environments
This video talks about the variety of approaches for installing Ansible, each with their own advantages and disadvantages.
• Compare the options that are available with advantages and disadvantages
• Discuss the options of using Python, PIP, and Virtual Environments
• Learn example of why Virtual Environments with Ansible are beneficial
Ansible Course Environment Setup
This video talks about how learning Ansible is most effective when applied in real environment.
• Look into the details of the lab for use with the course
• Learn about the required tools and where to download them
• Setup and troubleshooting of lab environment
Ansible on Microsoft Windows
This video talks about why windows is not officially supported as an Ansible control host.
• Discuss Ansible, can be installed on Windows, using a Linux Subsystem
• Discuss options of Ubuntu Subsystem and Cygwin
• Install a demo for Ubuntu Subsystem and Cygwin
Ansible on Mac OS X
This video talks about the installation of Ansible on Mac OS X.
• Discuss requirements for use of Python with Virtual Environment for Ansible
• Install and configure of prerequisites
• Install Ansible on Mac OS X
Ansible on Linux
This video shows us that there are a multitude of ways in which Ansible can be installed in Linux.
• Discuss options for CentOS and Ubuntu
• Install demonstration of options for CentOS
• Install demonstration of options for Ubuntu
Validating Ansible Installation
These video talks about the verification of lab setup and/or OS based control host.
• Create an inventory, Ansible configuration and SSH keys
• Check that connectivity is established
• Implement super user escalation within Ansible
Ansible Inventories
Learn how Ansible inventories provide a multitude of configuration options.
• Investigate the use of Ansible inventories
• Implement variables, ranges and children
• Implement super user escalation through root and sudo
Ansible Modules
Get to know how Ansible provides a plethora of modules as a batteries included framework.
• Learn about the use of common modules, understanding of color notation in execution
• Understand and use of Idempotence
• Learn further module uses and Ansible-doc
YAML
See how YAML, yet another markup language, is used extensively within Ansible.
• Understand the structure of YAML files
• Learn about the use of indentation, quotes and multiline values
• Learn about the use of truth/false, lists and dictionaries
Ansible Playbooks, Breakdown of Sections
Through this video we will understand why Ansible playbooks are a principal function and are highly extensible.
• Understand the various sections of the Ansible playbook
• Make use of the target, tasks, and vars section
• Learn about the use of handlers and playbook execution
Ansible Playbooks, Variables
Ansible provides extensive variable support through a variety of approaches.
• Investigate the different options for variables in the playbook
• Make use of Hostvars, Groupvars, external variables and prompts
• Provide variables on the command line and through external files
Ansible Playbooks, Facts
Get to know how facts in Ansible provide detailed host context.
• Understand the relationship of facts to the setup module
• Filter and use of specific facts
• Create your own custom facts with and without super user access
Templating with Jinja2
Learn how the Jinja2 language provides extensive control and templating functionality.
• Discover the use of the Jinja2 language common constructs
• Make use of If/elif/else, for loops, break and continue
• Learn about Filters and templating
Ansible Playbooks, Creating, and Executing
In this video, we will install and configure the Nginx webserver on both CentOS and Ubuntu.
• Configure and approach for Nginx differs for CentOS and Nginx
• Use Ansible to install, patch and standardize Nginx across platforms
• Run webapp and configure using Jinja2 templating
Ansible Playbook Modules
Get to know how modules in playbooks are a key factor for mastering Ansible.
• Dive deep into the use of multiple modules
• Make use of set_fact, pause, prompt, wait_for
• Learn about assemble, add_host, group_by, fetch
Dynamic Inventories
Study dynamic inventories and see how they allow Ansible to scale to the environment.
• Learn the requirements of dynamic inventories
• Learn about the creation of dynamic inventories
• Optimize dynamic inventories for performance
register and when
See how register allows the capture of Ansible content, when acts as a conditional.
• Learn how to register output using the when directive
• Learn how to use registered output
• Learn how to combine register with when
Looping
Ansible provides a multitude of ways of performing a loop conditional.
• Look at with_items, with_dict, with_together
• Look at with_subelements, with_together, with_sequence
• Look at random_choice and until
Asynchronous and Parallel
Discover how asynchronous and Parallel execution is effective for longer running tasks.
• Investigate playbook performance and bottlenecks
• Use asynchronous execution and polling
• Use serial and batch execution and alternative strategies
Task Delegation
Get to know how required resources may not be available on a target system.
• Investigate task delegation, to delegate execution to another host
• Implement task delegation
• Test task delegation
Magic Variables
In this video we will learn how Ansible provides magic variables.
• Understand context for magic variables and accessing other variables
• Create a playbook that can capture all available variables
• Look at available magic variables
Blocks
See how blocks allow grouping of tasks and failure/recovery.
• Learn how to group tasks into blocks
• Learn the use of rescue tasks in the event of a failure
• Learn the use of always, for failure/success
Using the Ansible Vault
See how the Ansible Vault allows sensitive information to be stored and used.
• Encrypt and Decrypt variables and files
• Re-encrypt the data
• Use multiple Vaults
Creating Custom Modules
Custom modules allow you to expand Ansible for further use.
• Understand the requirements for custom modules
• Create a basic module using shell scripting and hacking tools
• Learn transition module to the Ansible module framework
Creating Plugins
Custom plugins provide extensive functionality to Ansible.
• Understand the requirements for creating plugins
• Create a lookup plugin
• Create a filter plugin
Using Includes and Imports
Through this video we will see how Ansible provides a variety of means for including and importing tasks and playbooks.
• Look into the use of include tasks, playbooks
• Learn variation with include_tasks, include_playbooks, advantages and disadvantages
• Know the difference between static and dynamic execution and recommendations
Using Tags
Tags provide an effective means of playbook reuse.
• Use tags, segmentation with tags
• Execute tags, skipping with tags, Playbook tags
• Learn special tags, Tag inheritance
Using Roles
See how roles provide an effective means of structuring playbooks.
• Learn the role structure
• Understand how to create roles
• Execute transitioning an existing playbook to a role and dependencies
AWS with Ansible
In this video we will see how Ansible provides extensive support for AWS with Ansible.
• Configure Ansible with AWS support
• Create instances and manage through dynamic inventory
• Deploy AWS applications and termination/cleanup
Docker Support with Ansible
Learn how Ansible provides modules to support Docker interaction.
• Configure Ansible with Docker support
• Create Docker containers through Ansible
• Deploy our application in a container and termination/cleanup
Troubleshooting Ansible
Discover the means and approaches for troubleshooting Ansible.
• Learn about troubleshooting SSHD connectivity through verbose client and server
• Learn about troubleshooting playbooks through step through and start at execution
• Use log path and increased execution verbosity
Validating Testing with Ansible
Validating that an Ansible release is fit for purposes.
• Download Ansible source code
• Configure Ansible for extensive unit testing
• Execute, Ansible source
Best Practices with Ansible
Understand the Ansible best practices.
• Discuss approaches for best practices
• Review, best practices documentation
• Refer to best practices in course material
Upgrading Ansible
Get to know about options and approaches for upgrading Ansible.
• Learn overview of options available for upgrade
• Upgrade Ansible through PIP
• Discover the use of Python 3 and PIP
Mastering Ansible - Quiz
Mastering Ansible.
35 lectures 11:28:28
Mastering Ansible - The Course Overview
This video will give you an overview about the course.
Ansible Requirements – Python, PIP, and Virtual Environments
This video talks about the variety of approaches for installing Ansible, each with their own advantages and disadvantages.
• Compare the options that are available with advantages and disadvantages
• Discuss the options of using Python, PIP, and Virtual Environments
• Learn example of why Virtual Environments with Ansible are beneficial
Ansible Course Environment Setup
This video talks about how learning Ansible is most effective when applied in real environment.
• Look into the details of the lab for use with the course
• Learn about the required tools and where to download them
• Setup and troubleshooting of lab environment
Ansible on Microsoft Windows
This video talks about why windows is not officially supported as an Ansible control host.
• Discuss Ansible, can be installed on Windows, using a Linux Subsystem
• Discuss options of Ubuntu Subsystem and Cygwin
• Install a demo for Ubuntu Subsystem and Cygwin
Ansible on Mac OS X
This video talks about the installation of Ansible on Mac OS X.
• Discuss requirements for use of Python with Virtual Environment for Ansible
• Install and configure of prerequisites
• Install Ansible on Mac OS X
Ansible on Linux
This video shows us that there are a multitude of ways in which Ansible can be installed in Linux.
• Discuss options for CentOS and Ubuntu
• Install demonstration of options for CentOS
• Install demonstration of options for Ubuntu
Validating Ansible Installation
These video talks about the verification of lab setup and/or OS based control host.
• Create an inventory, Ansible configuration and SSH keys
• Check that connectivity is established
• Implement super user escalation within Ansible
Ansible Inventories
Learn how Ansible inventories provide a multitude of configuration options.
• Investigate the use of Ansible inventories
• Implement variables, ranges and children
• Implement super user escalation through root and sudo
Ansible Modules
Get to know how Ansible provides a plethora of modules as a batteries included framework.
• Learn about the use of common modules, understanding of color notation in execution
• Understand and use of Idempotence
• Learn further module uses and Ansible-doc
YAML
See how YAML, yet another markup language, is used extensively within Ansible.
• Understand the structure of YAML files
• Learn about the use of indentation, quotes and multiline values
• Learn about the use of truth/false, lists and dictionaries
Ansible Playbooks, Breakdown of Sections
Through this video we will understand why Ansible playbooks are a principal function and are highly extensible.
• Understand the various sections of the Ansible playbook
• Make use of the target, tasks, and vars section
• Learn about the use of handlers and playbook execution
Ansible Playbooks, Variables
Ansible provides extensive variable support through a variety of approaches.
• Investigate the different options for variables in the playbook
• Make use of Hostvars, Groupvars, external variables and prompts
• Provide variables on the command line and through external files
Ansible Playbooks, Facts
Get to know how facts in Ansible provide detailed host context.
• Understand the relationship of facts to the setup module
• Filter and use of specific facts
• Create your own custom facts with and without super user access
Templating with Jinja2
Learn how the Jinja2 language provides extensive control and templating functionality.
• Discover the use of the Jinja2 language common constructs
• Make use of If/elif/else, for loops, break and continue
• Learn about Filters and templating
Ansible Playbooks, Creating, and Executing
In this video, we will install and configure the Nginx webserver on both CentOS and Ubuntu and where to download them
• Setup and troubleshooting of lab environment
Ansible on Microsoft Windows
...