Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
key: 6bf597e0-8a98-478b-9a88-e9e389fdfd38
# Use regex_replace to return only the first 13 characters
# Equivalent to a command that'd be like:
# - echo $key |sed -e 's/^\(.\{13\}\).*/\1/'
# - echo $key |cut -c 1-13
- debug:
msg: "{{ key | regex_replace('^(.{13}).*', '\\1' }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.