April 2020
Intermediate to advanced
482 pages
15h 16m
English
In this example playbook, we want to push ACL configuration to our infrastructure. We generate the configuration using the template module, and we push the configuration using the iosxr_config module. All our ACL definition is declared in the ACLs.yml file. We would like to validate the input data contained within our ACLs.yml file since this is the data that we rely on in order to generate our configuration.
We create a validate_acl.yml tasks file that has multiple tasks to validate the structure and the content of the data that we will use to generate our configuration. We start by importing our data using the include_vars parameter and then we define two main tasks to validate our data:
Read now
Unlock full access