another useful example (#73728)
This commit is contained in:
parent
9690512069
commit
91b42d62fa
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||||
|
|
||||||
Find mount point
|
Find mount point
|
||||||
|
|
Loading…
Reference in a new issue