
Ansible Tip - Referencing items from a hash
Let's say you are in the midst of writing an Ansible playbook and you need to reference multiple values from an 'item' in different places. Here's a neat code snippet that will allow you to do just that.
hosts: all
vars:
file_path_1: /usr/bin
file_path_2: /example
file_path_3: /opt
tasks:...