Assemble
Let's take a look at the Ansible assemble module and how to use it in playbook tasks.
We'll cover the following
The assemble module
The Ansible assemble module is used to combine the smaller, modular, fragmented templates and build, or assemble, them into a single Jinja2 template. The following lines indicate the source of the fragments, or Jinja2 templates, and the destination where to compile the assembled template:
assemble:
src: ../../templates/configurations/ios/
dest: '../../templates/documentation/ios/ios_combined.j2'
Write the following documentation.yml
Ansible playbook to generate both the configuration file per device and the Markdown documentation, using the template above for the core, distribution, and
access layers.
Examine and breakdown the following playbook:
Get hands-on with 1400+ tech skills courses.