AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,100 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example" published by Apress, and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

Ansible 2.16.0: Major Enhancements and Updates — Video Tutorial

Ansible 2.16.0 introduces support for Python 3.12, new remote options, and improved CLI functionality. This release also includes deprecated feature removals, updates to documentation, and enhanced security measures.

Watch Video

Watch "Ansible 2.16.0: Major Enhancements and Updates" on YouTube

What You'll Learn

Full Tutorial Content

Introduction Ansible, the open-source automation platform, has released a new version with numerous enhancements, bug fixes, and security updates. Ansible has become a fundamental tool for managing IT infrastructure and applications, streamlining workflows, and maintaining infrastructure as code (IaC) principles. Ansible 2.16 Let’s delve into the key changes introduced in this release: Important Changes: - Drop Python 3.5 support for module execution. - Drop Python 3.9 support for the controller. - Add Python 3.12 support. - Preserve display context when proxying display over the queue. - Update `TaskExecutor` to not unnecessarily establish persistent `ansible-connection` when not needed. Ansible Enhancements - Collection Path The INI config option “collections_paths” has been deprecated; please use the singular form “collections_path” instead. Additionally, the environment variable “ANSIBLE_COLLECTIONS_PATHS” is now deprecated, and you should use the singular form “ANSIBLE_COLLECTIONS_PATH” instead. - Removed Support for Windows Server 2012 and 2012 R2 as Microsoft’s support end of life on October 10th, 2023. - Remote Support New remotes have been added, including Alpine 3.18, Fedora 38, Fedora 38 container, FreeBSD 13.2 remote, RHEL 8.8 remotes, and RHEL 9.2 remotes, expanding compatibility across various platforms. - Python 3.12 Support Support for testing with Python 3.12 has been introduced, keeping Ansible up-to-date with the latest Python version. - Improved Container Naming Containers created by ansible-test now include the current test session ID in their name, avoiding conflicts between concurrent ansible-test invocations. - Improved Test Provisioning RHEL 8.8 and RHEL 9.2 provisioning can now be used with the `--python 3.11` option, improving testing flexibility. - Streamlined Code Coverage Thread code coverage has been enabled alongside existing multiprocessing coverage, enhancing code quality assurance. - RHEL 8.8 and RHEL 9.2 Support Provisioning for RHEL 8.8 and RHEL 9.2 has been added, expanding compatibility for Red Hat Enterprise Linux users. - Deprecated Features Removal Several deprecated features have been removed, including the ‘smart’ connection option, deprecated INI config options, and support for older Windows Server versions. CLI Improvements - Improved CLI Argument Parsing Support for automatically prepending with the help of CLI arguments that support being specified multiple times has been added, streamlining the command-line interface. - Default Transport `DEFAULT_TRANSPORT` now defaults to ‘ssh,’ while the ‘smart’ option is deprecated due to the decreasing relevance of control persist in newer OpenSSH versions. Porting Guide - Python Type Hints One notable update is the addition of Python-type hints to the `Display` class, contributing to improved code readability and maintainability. - Galaxy Collection Warning To enhance user control, a new option, `GALAXY_COLLECTIONS_PATH_WARNING`, allows d

About This Tutorial

Read the full written article: Ansible 2.16.0: Major Enhancements and Updates

Topics Covered

Related Video Tutorials