another useful example (#73728)

This commit is contained in:
Brian Coca 2021-02-25 17:11:16 -05:00 committed by GitHub
parent 9690512069
commit 91b42d62fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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