This post discusses somewhat lesser known type of Ansible loop: "until" loop, which is used for retrying task until certain condition is met....
Tag: Ansible
In this post we focus on Jinja2 filters. We learn what filters are and how to use them. Then you will see how to write custom filters. We finish with usage examples for selected filters....
Third post in the Jinja2 tutorial series deals with whitespace control. We learn where whitespaces come from and how to control them....
First post in the Jinja tutorial series where I'll provide an overview of the language, discussion of its features and a healthy dose of example use cases. If you're new to the world of templating or simply need to refresh your memory, then you should found this series useful....
This is the second post in the series on Napalm validation in which we will explore more options available to us for writing validation tests. First part can be found here: NAPALM-Ansible - Automatic validation - part 1. First we'll make amendments to YAML files we used to describe desired LLDP state and see how it affects validation results. After that we'll introduce two more examples, one for checking BGP peerings, and one for verifying reported interfaces. Contents Partial string matching and regex BGP peering validation example Strict mode and 'list' key Listings of Playbooks GitHub repository with resources for...