Difference: AnsibleTipsTricks (11 vs. 12)

Revision 1211 Feb 2022 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Ansible tips & tricks

Line: 87 to 87
 

Apply a filter to a list of items

Changed:
<
<
Use "{{ variable | map('', 'filter_option1', 'filter_option2') | list }}"
>
>
Use "{{ variable | map('filter_name', 'filter_option1', 'filter_option2') | list }}"
  For example:
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2010-2019 by LANIS