another useful example (#73728)

pull/73735/head
Brian Coca 5 years ago committed by GitHub
parent 9690512069
commit 91b42d62fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,6 +94,13 @@ There are several ways to do it in Ansible, this is just one example:
}
.. code-block:: YAML+Jinja
:caption: Get the unique list of values of a variable that vary per host
vars:
unique_value_list: "{{ groups['all'] | map ('extract', hostvars, 'varname') | list | unique}}"
.. _find_mount_point:
Find mount point

Loading…
Cancel
Save