Recent posts

Understanding Ansible Output Structure

May 21, 2017 | 10 minute read

Note that this post uses NTC-Ansible. Installation instructions can be found here. In the Ansible –extra-vars post we saw just how out of control outputs can be. The Cleaning Up Ansible Loop Outputs post then demonstrated how we can remove all of the unnecessary information. This post is aimed at answering the question, “How do we navigate thr...

Looping through Dictionaries in Ansible

May 21, 2017 | 3 minute read

Note that this post uses NTC-Ansible. Installation instructions can be found here. In the Understanding Ansible Output Structure post we saw how to extract a single entry out of a dictionary. We saw that it’s possible to do it using the map() filter too. However, what if we want to extract all entries in the dictionary, how would we go about th...

Cleaning Up Ansible Loop Outputs

May 20, 2017 | 3 minute read

Note that this post uses NTC-Ansible. Installation instructions can be found here. As we saw in the –extra-vars post, the first Playbook produces a very clean, succinct output. However, after making a minor alteration to the Playbook (I added a single loop and one additional show command), the output went from just 43 lines to over 260 lines! ...

Ansible –extra-vars

May 20, 2017 | 7 minute read

Note that this post uses NTC-Ansible. Installation instructions can be found here. Often you will see variables defined in a Playbook, a Task and/or a variables file such as group_vars or host_vars, as shown below: Variables in a Playbook: - hosts: localhost connection: local gather_facts: no vars: provider: username: cisco ...

Installing Git on Windows

May 19, 2017 | 1 minute read

Installing Git on Windows is very similar to installing it on Linux. That might not come as a surprise though because the tools we’ll be using in this post are specifically designed to allow Windows users to utilise Linux packages without needing to install a VM. Installation The first thing you’ll need to do is download Git for Windows. Once ...