only look for uppercase words ansible regex code example Example: ansible convert to upper case {{ ansible_hostname|upper }}