Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Ansible tips & tricks | ||||||||
Line: 83 to 83 | ||||||||
Sort list of dictionaries by subitemUse "{{ variable | sort(attribute='key_name') }}" | ||||||||
Added: | ||||||||
> > |
Searching a string in a when statementUse: when: my_string is match(pattern) Instead of match, you can also use search or regex. See: https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#testing-strings | |||||||
Add a string to a string |