Difference: AnsibleTipsTricks (5 vs. 6)

Revision 617 Nov 2021 - IvoVanGeel

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

Ansible tips & tricks

Line: 67 to 67
 

Sort list of dictionaries by subitem

Use "{{ variable | sort(attribute='key_name') }}"

Added:
>
>

Add a string to a string

Use "{{ string1 + string2 }}"

Or: "{{ string1 + ', ' + string2 }}"

 

Add item to list

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2010-2019 by LANIS